My question involves criminal law for the state of: California
I was arrested for obstructing an officer 148 (1) PC I live with a roommate and she let her boyfriend who is on probation stay at the house. The Police came by with some probation officers when the person they were looking for was not home. They knocked then walked through an unlocked door and were at my room telling me through the door to come out I did and they asked if I knew the probationer I said yes then they said they saw him jump off the couch and run back to the rooms which is a lie because he was gone for hours before they came. The Police took me out front of my house and had a Probation Officer there who patted me down and told me to sit on ground next to my room mate I told him no I would not sit on the ground since I was not on Parole or Probation and I wasn't breaking any laws. The Probation officer didn't know what to do so I stood there and in about 5 minutes a cop came out patted me down and tried to go in my pockets and I told him to stay out of my pockets that I am not giving consent to search me. I knew he could pat me down for weapons and he did he then told me to sit down on the ground I said no I will not sit on the ground and asked if I was being detained he said no then told me to sit again I refused then he told me to put my hands behind my pack and cuffed me and said he was detaining me then immediately said I was under arrest for Obstructing an officer. My question is do I have to comply with the Police when I am not under investigation or a suspect for anything. If the Police came here again I still will not sit on the ground I don't think the DA will file the charges he hasn't yet after about 2 weeks Thanks for any comments.

