コード例 #1
0
// output_disarmed - sends commands to the motors
void AP_MotorsHeli::output_disarmed()
{
    if(_rc_throttle->control_in > 0) {
        // we have pushed up the throttle
        // remove safety
        _auto_armed = true;
    }

    // for helis - armed or disarmed we allow servos to move
    output_armed();
}
コード例 #2
0
// output - sends commands to the motors
void AP_Motors::output()
{
    // update max throttle
    update_max_throttle();

    // output to motors
    if (_flags.armed ) {
        output_armed();
    } else {
        output_disarmed();
    }
};
コード例 #3
0
ファイル: AP_MotorsHeli.cpp プロジェクト: AhLeeYong/x-drone
// output_disarmed - sends commands to the motors
void AP_MotorsHeli::output_disarmed()
{
    // for helis - armed or disarmed we allow servos to move
    output_armed();
}