mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Parachute: formatting fixes
This commit is contained in:
parent
dbf6f6f4b1
commit
17d4e797fb
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user