Quantcast
Channel: Emlid Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 12770

How to make ESC Calibration Program

$
0
0

@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 12a

However, 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

Read full topic


Viewing all articles
Browse latest Browse all 12770

Trending Articles