diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index cff3630079bd5ff9812c8c22b6b3f32d2b9fb05a..615dc2aa9043d8036d207987f4b533da55f2c00c 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -1215,5 +1215,8 @@ void Vehicle::_remoteControlRSSIChanged(uint8_t rssi) void Vehicle::virtualTabletJoystickValue(double roll, double pitch, double yaw, double thrust) { - _uas->setExternalControlSetpoint(roll, pitch, yaw, thrust, 0, JoystickModeRC); + // The following if statement prevents the virtualTabletJoystick from sending values if the standard joystick is enabled + if ( !_joystickEnabled ) { + _uas->setExternalControlSetpoint(roll, pitch, yaw, thrust, 0, JoystickModeRC); + } }