Commit 78089b60 authored by Don Gagne's avatar Don Gagne

Refresh all params after cal

parent aa1b3191
...@@ -267,6 +267,7 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in ...@@ -267,6 +267,7 @@ void SensorsComponentController::_handleUASTextMessage(int uasId, int compId, in
void SensorsComponentController::_refreshParams(void) void SensorsComponentController::_refreshParams(void)
{ {
// Pull specified params first so red/green indicators update quickly
_autopilot->refreshParameter("CAL_MAG0_ID"); _autopilot->refreshParameter("CAL_MAG0_ID");
_autopilot->refreshParameter("CAL_GYRO0_ID"); _autopilot->refreshParameter("CAL_GYRO0_ID");
_autopilot->refreshParameter("CAL_ACC0_ID"); _autopilot->refreshParameter("CAL_ACC0_ID");
...@@ -276,6 +277,9 @@ void SensorsComponentController::_refreshParams(void) ...@@ -276,6 +277,9 @@ void SensorsComponentController::_refreshParams(void)
_autopilot->refreshParameter("CAL_MAG1_ROT"); _autopilot->refreshParameter("CAL_MAG1_ROT");
_autopilot->refreshParameter("CAL_MAG2_ROT"); _autopilot->refreshParameter("CAL_MAG2_ROT");
_autopilot->refreshParameter("SENS_BOARD_ROT"); _autopilot->refreshParameter("SENS_BOARD_ROT");
// Pull full set in order to get all cal values back
_autopilot->refreshAllParameters();
} }
bool SensorsComponentController::fixedWing(void) bool SensorsComponentController::fixedWing(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