mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: accept do-winch commands with max rate
This commit is contained in:
parent
47bbf49aa6
commit
842eed5426
@ -1217,7 +1217,7 @@ void GCS_MAVLINK_Copter::handleMessage(mavlink_message_t* msg)
|
||||
break;
|
||||
}
|
||||
case WINCH_RATE_CONTROL: {
|
||||
if (fabsf(packet.param4) < copter.g2.winch.get_rate_max()) {
|
||||
if (fabsf(packet.param4) <= copter.g2.winch.get_rate_max()) {
|
||||
copter.g2.winch.set_desired_rate(packet.param4);
|
||||
copter.Log_Write_Event(DATA_WINCH_RATE_CONTROL);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user