Browse Source

Do not send virtual joystick commmands over high latency links

QGC4.4
acfloria 7 years ago
parent
commit
89680c8bca
  1. 2
      src/Vehicle/Vehicle.cc

2
src/Vehicle/Vehicle.cc

@ -2465,7 +2465,7 @@ void Vehicle::_remoteControlRSSIChanged(uint8_t rssi) @@ -2465,7 +2465,7 @@ void Vehicle::_remoteControlRSSIChanged(uint8_t rssi)
void Vehicle::virtualTabletJoystickValue(double roll, double pitch, double yaw, double thrust)
{
// The following if statement prevents the virtualTabletJoystick from sending values if the standard joystick is enabled
if ( !_joystickEnabled ) {
if ( !_joystickEnabled && !_highLatencyLink) {
_uas->setExternalControlSetpoint(roll, pitch, yaw, thrust, 0, JoystickModeRC);
}
}

Loading…
Cancel
Save