Application/main.cpp
void updateRobotServos( PWMDriver &pwm ){
	pwm.setPin( 0, pwm.degToPwm( posRot ));
	pwm.setPin( 1, pwm.degToPwm( posFor ));
	pwm.setPin( 2, pwm.degToPwm( posUp  ));
	pwm.setPin( 3, pwm.degToPwm( posGrab));
}
// Updates the servos rotations
// Requires a PWMDriver object as argument
Updates the servos rotations
Requires a PWMDriver object as argument
Updates the servos rotations Requires a PWMDriver object as argument
void updateRobotServos( PWMDriver &pwm ){
	pwm.setPin( 0, pwm.degToPwm( posRot ));
	pwm.setPin( 1, pwm.degToPwm( posFor ));
	pwm.setPin( 2, pwm.degToPwm( posUp  ));
	pwm.setPin( 3, pwm.degToPwm( posGrab));
}
void updateRobotServos ( PWMDriver & pwm ) { pwm . setPin ( 0 , pwm . degToPwm ( posRot ) ) ; pwm . setPin ( 1 , pwm . degToPwm ( posFor ) ) ; pwm . setPin ( 2 , pwm . degToPwm ( posUp ) ) ; pwm . setPin ( 3 , pwm . degToPwm ( posGrab ) ) ; }
Updates the servos rotations
Requires a PWMDriver object as argument
Updates the servos rotations Requires a PWMDriver object as argument