25 #include "littleWire_servo.h"
30 const float MIN_LIMIT = 0.45;
31 const float MAX_LIMIT = 2.45;
32 const float STEP_SIZE = 0.062;
33 const float RANGE = 180.0;
52 void servo_updateLocation(littleWire* lwHandle,
unsigned char locationChannelA,
unsigned char locationChannelB)
54 locationChannelA=(((locationChannelA/RANGE)*(MAX_LIMIT-MIN_LIMIT))+MIN_LIMIT)/STEP_SIZE;
55 locationChannelB=(((locationChannelB/RANGE)*(MAX_LIMIT-MIN_LIMIT))+MIN_LIMIT)/STEP_SIZE;