AR_Motors: stop setting safety limit
This commit is contained in:
parent
2abe120969
commit
3dca9b4534
@ -150,18 +150,6 @@ void AP_MotorsUGV::setup_safety_output()
|
||||
SRV_Channels::set_trim_to_min_for(SRV_Channel::k_throttleRight);
|
||||
}
|
||||
|
||||
if (_disarm_disable_pwm) {
|
||||
// throttle channels output zero pwm (i.e. no signal)
|
||||
SRV_Channels::set_safety_limit(SRV_Channel::k_throttle, SRV_Channel::Limit::ZERO_PWM);
|
||||
SRV_Channels::set_safety_limit(SRV_Channel::k_throttleLeft, SRV_Channel::Limit::ZERO_PWM);
|
||||
SRV_Channels::set_safety_limit(SRV_Channel::k_throttleRight, SRV_Channel::Limit::ZERO_PWM);
|
||||
} else {
|
||||
// throttle channels output trim values (because rovers will go backwards if set to MIN)
|
||||
SRV_Channels::set_safety_limit(SRV_Channel::k_throttle, SRV_Channel::Limit::TRIM);
|
||||
SRV_Channels::set_safety_limit(SRV_Channel::k_throttleLeft, SRV_Channel::Limit::TRIM);
|
||||
SRV_Channels::set_safety_limit(SRV_Channel::k_throttleRight, SRV_Channel::Limit::TRIM);
|
||||
}
|
||||
|
||||
// stop sending pwm if main CPU fails
|
||||
SRV_Channels::set_failsafe_limit(SRV_Channel::k_throttle, SRV_Channel::Limit::ZERO_PWM);
|
||||
SRV_Channels::set_failsafe_limit(SRV_Channel::k_throttleLeft, SRV_Channel::Limit::ZERO_PWM);
|
||||
|
Loading…
Reference in New Issue
Block a user