Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Vehicle/Vehicle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2363,6 +2363,7 @@ void Vehicle::setCurrentMissionSequence(int seq)
},
static_cast<uint8_t>(defaultComponentId()),
MAV_CMD_DO_SET_MISSION_CURRENT,
true,
static_cast<uint16_t>(seq)
);
}
Expand Down Expand Up @@ -2456,9 +2457,8 @@ static void _sendMavCommandWithLambdaFallbackHandler(void* resultHandlerData, in
delete data;
}

void Vehicle::sendMavCommandWithLambdaFallback(std::function<void()> lambda, int compId, MAV_CMD command, float param1, float param2, float param3, float param4, float param5, float param6, float param7)
void Vehicle::sendMavCommandWithLambdaFallback(std::function<void()> lambda, int compId, MAV_CMD command, bool showError, float param1, float param2, float param3, float param4, float param5, float param6, float param7)
{

auto* instanceData = firmwarePluginInstanceData();

switch (instanceData->getCommandSupported(command)) {
Expand All @@ -2471,6 +2471,7 @@ void Vehicle::sendMavCommandWithLambdaFallback(std::function<void()> lambda, int
sendMavCommand(
compId,
command,
showError,
param1,
param2,
param3,
Expand Down
1 change: 1 addition & 0 deletions src/Vehicle/Vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ class Vehicle : public VehicleFactGroup
void sendMavCommandWithLambdaFallback(
std::function<void()> lambda,
int compId, MAV_CMD command,
bool showError,
float param1 = 0.0f, float param2 = 0.0f, float param3 = 0.0f, float param4 = 0.0f, float param5 = 0.0f, float param6 = 0.0f, float param7 = 0.0f);


Expand Down
Loading