Commit 571e7fb1 authored by Rustom Jehangir's avatar Rustom Jehangir

Implement manual control button reserved function for ArduSub plugin.

parent eb1fde48
......@@ -79,7 +79,7 @@ public:
bool setFlightMode(const QString& flightMode, uint8_t* base_mode, uint32_t* custom_mode) final;
bool isGuidedMode(const Vehicle* vehicle) const final;
void pauseVehicle(Vehicle* vehicle);
int manualControlReservedButtonCount(void) final;
int manualControlReservedButtonCount(void);
bool adjustIncomingMavlinkMessage(Vehicle* vehicle, mavlink_message_t* message) final;
void adjustOutgoingMavlinkMessage(Vehicle* vehicle, mavlink_message_t* message) final;
void initializeVehicle(Vehicle* vehicle) final;
......
......@@ -47,3 +47,8 @@ ArduSubFirmwarePlugin::ArduSubFirmwarePlugin(void)
supportedFlightModes << APMSubMode(APMSubMode::ALT_HOLD ,true);
setSupportedModes(supportedFlightModes);
}
int ArduSubFirmwarePlugin::manualControlReservedButtonCount(void)
{
return 0;
}
......@@ -67,6 +67,7 @@ public:
ArduSubFirmwarePlugin(void);
// Overrides from FirmwarePlugin
int manualControlReservedButtonCount(void);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment