how to find servo angles?

Hi,

I was trying to set sparki.servo() but before i do that i need to know whats the current servo angle. I couldnt find it in the examples. Please help

-Idhant

There’s currently no command for this. You would just need to keep track of it as you set the servo angle, by storing it in another variable. For example:

int servo_angle = 5; sparki.servo(servo_angle);
Then you use servo_angle as the current servo angle. Just make sure to update it every time you set the servo angle.