ISU-MAVRIC / MAVRIC_Arm

MAVRIC arm control board and firmware
1 stars 1 forks source link

Create main loop writing to the PWM objects #28

Closed markrusciano closed 9 years ago

markrusciano commented 9 years ago

Reference for PWM out: http://developer.mbed.org/handbook/PwmOut

In your main loop in the mbed project, for each servo object call period_us(20000) to set the PWM outputs to the period servos are compatible with. Then, for each object, call pulsewidth_us(###) with ### being any number from 1000 to 2000. 1000 is 0 degrees on a servo, 2000 is 180 degrees typically.

zdanger commented 9 years ago

http://developer.mbed.org/users/zadanger/code/arm_control_pwm/rev/713aa5db7af8