AP_Parachute: formatting fixes

This commit is contained in:
Randy Mackay 2020-09-16 14:40:26 +09:00 committed by Andrew Tridgell
parent dbf6f6f4b1
commit 17d4e797fb
2 changed files with 6 additions and 6 deletions

View File

@ -141,18 +141,18 @@ void AP_Parachute::update()
if (_release_type == AP_PARACHUTE_TRIGGER_TYPE_SERVO) { if (_release_type == AP_PARACHUTE_TRIGGER_TYPE_SERVO) {
// move servo // move servo
SRV_Channels::set_output_pwm(SRV_Channel::k_parachute_release, _servo_on_pwm); SRV_Channels::set_output_pwm(SRV_Channel::k_parachute_release, _servo_on_pwm);
}else if (_release_type <= AP_PARACHUTE_TRIGGER_TYPE_RELAY_3) { } else if (_release_type <= AP_PARACHUTE_TRIGGER_TYPE_RELAY_3) {
// set relay // set relay
_relay.on(_release_type); _relay.on(_release_type);
} }
_release_in_progress = true; _release_in_progress = true;
_released = true; _released = true;
} }
}else if ((_release_time == 0) || time_diff >= delay_ms + AP_PARACHUTE_RELEASE_DURATION_MS) { } else if ((_release_time == 0) || time_diff >= delay_ms + AP_PARACHUTE_RELEASE_DURATION_MS) {
if (_release_type == AP_PARACHUTE_TRIGGER_TYPE_SERVO) { if (_release_type == AP_PARACHUTE_TRIGGER_TYPE_SERVO) {
// move servo back to off position // move servo back to off position
SRV_Channels::set_output_pwm(SRV_Channel::k_parachute_release, _servo_off_pwm); SRV_Channels::set_output_pwm(SRV_Channel::k_parachute_release, _servo_off_pwm);
}else if (_release_type <= AP_PARACHUTE_TRIGGER_TYPE_RELAY_3) { } else if (_release_type <= AP_PARACHUTE_TRIGGER_TYPE_RELAY_3) {
// set relay back to zero volts // set relay back to zero volts
_relay.off(_release_type); _relay.off(_release_type);
} }