@simone wrote:
Hello
I am making a program to perform the calibration of the now ESC.
This video in the reference, has created a program
① turn on the power.
② Enter the maximum output value of the PWM
③ Enter the minimum output areas of PWM
UsedESC:simonk esc 12aHowever, my program made did not work.
Please tell me something good way.
int main ()
{
PWM pwm;if (check_apm ()) { return 1; } if (! pwm.init (PWM_OUTPUT)) { fprintf (stderr, ".? Output Enable not set Are you root \ n"); return 0; } pwm.enable (PWM_OUTPUT); pwm.set_period (PWM_OUTPUT, 50); while (true) { pwm.set_duty_cycle (PWM_OUTPUT, SERVO_MAX); sleep (10); pwm.set_duty_cycle (PWM_OUTPUT, SERVO_MIN); } return 0;
}
Posts: 1
Participants: 1