REDWOOD CITY — A mentally ill San Francisco woman who repeatedly slammed her Camaro into a Burlingame police car — while a witness caught the episode on video — was released from jail Thursday as part of a plea bargain, attorneys said.

Tina Mary Puccini-Perez was sentenced to time served and three years of probation and ordered to take her medication in connection with the incident on a Burlingame street that produced a lot of burnt rubber and smoke but no injuries.

The clip shows Puccini-Perez, 52, backing into a police car that had pulled up behind her stopped vehicle Dec. 14. She rammed it a few times before apparently slamming on the accelerator. Her tires began to spin and produced a dense, white cloud of smoke that nearly obscured the two vehicles.

“She was wasn’t trying to hurt anyone, but was crazed, trying to get away from whatever was in her mind,” said defense attorney Jeff Jackson. “None of it was true. It was all in her mind.”

Puccini-Perez pleaded no contest May 23 in San Mateo County Superior Court to felony assault on an officer. That plea came after two of three court-appointed doctors decided she was mentally competent to defend herself against the charges.

As part of the sentencing by San Mateo County Superior Court Judge Lisa Novak, Puccini-Perez was also ordered to pay Burlingame $1,400 to repair the police cruiser involved in the incident.

Police initially found her after getting reports that a Camaro was racing around the area near Drake Avenue and Adeline Drive. The officer saw her speed through two stop signs and began pursuing her on residential streets, prosecutors said. She eventually lost control of the vehicle and came to a stop.

According to prosecutors, the officer got out and had his gun drawn when Puccini-Perez backed toward and nearly hit him. The officer got back in his car, which she then began to ram. The video clip, which was posted on YouTube, captured the rest.

Jackson said one court-appointed doctor diagnosed his client with paranoid schizophrenia and depression.

He added the woman has family and friends in the area who can take her in. Puccini-Perez had no recollection of the incident after she resumed taking medication in jail, where she has been held since her arrest.