readServoAnglePD(id)
Read the servo angle while the servo is powered off (can be moved)
Parameter
Parameters
Type
Description
id
unsigned char
ID number to be controlled, range 0 ~ 18
Return Values
Parameters
Type
Description
number
int
Servo’s angle, Range from -118 ~ 118
例子
se uKit Explore v2 board to control servo ID-1 to rotate to -20 ° in 400ms. Then read and print the servo’s angle every 400ms.
Use uKit Explore v2 board to control the servo ID-1 from -118° and add 1° every 100ms at a speed of 100ms. Then read and print the servo’s angle.
Results: the new angle of the Servo Motor can be read after the angle of the Servo Motor is read and the steering gear is broken.
Last updated