diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index cff3630..615dc2a 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); + } }