commander: add sensors reset to factory calibration

This commit is contained in:
Beat Küng
2021-02-11 13:07:03 +01:00
committed by Daniel Agar
parent 3f172dbfa7
commit 72bc8647a9
3 changed files with 18 additions and 0 deletions
+4
View File
@@ -1327,6 +1327,10 @@ Commander::handle_command(const vehicle_command_s &cmd)
} else if (((int)(cmd.param1)) == 2) {
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED);
_worker_thread.startTask(WorkerThread::Request::ParamResetAll);
} else if (((int)(cmd.param1)) == 3) {
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED);
_worker_thread.startTask(WorkerThread::Request::ParamResetSensorFactory);
}
}