First argument is uint16_t cmd, but it is not being used in the function as far as I can see.
Should the vcmd.command = vehicle_command_s::VEHICLE_CMD_NAV_TAKEOFF;
be vcmd.command = cmd; instead?
I haven't tested out the code, but it just seems wrong.
While I was going through the code and I came across line 263 in Commander.cpp
First argument is
uint16_t cmd
, but it is not being used in the function as far as I can see. Should thevcmd.command = vehicle_command_s::VEHICLE_CMD_NAV_TAKEOFF;
bevcmd.command = cmd;
instead?I haven't tested out the code, but it just seems wrong.