Skip to content
Snippets Groups Projects
Commit 5f343302 authored by Nicolò Caruso's avatar Nicolò Caruso Committed by Emilio Corigliano
Browse files

[ARP] Fixed leds SMA, Fixed fix_gps send in telemetry

Fix leds in SMA: There was some problem with the reset in no feedback condition, of turning off the red led or maintaining the blue led blinking.
Fix fix_gps: The fix_gps in telemetry was taking the incorrect VN300Data fix. Now changed with the correct fix_gps data.
parent 8cf073f6
No related branches found
No related tags found
No related merge requests found
......@@ -589,6 +589,7 @@ State SMA::state_arm_ready(const Event& event)
case EV_ENTRY:
{
logStatus(SMAState::ARM_READY);
ModuleManager::getInstance().get<Leds>()->setOff(LedColor::BLUE);
ModuleManager::getInstance().get<Leds>()->setOn(LedColor::RED);
ModuleManager::getInstance().get<Leds>()->setSlowBlink(
LedColor::YELLOW);
......@@ -927,7 +928,6 @@ State SMA::state_fix_rocket_nf(const Event& event)
case EV_ENTRY:
{
logStatus(SMAState::FIX_ROCKET_NF);
ModuleManager::getInstance().get<Leds>()->setOff(LedColor::RED);
ModuleManager::getInstance().get<Leds>()->setFastBlink(
LedColor::BLUE);
return HANDLED;
......
......@@ -102,7 +102,7 @@ void BoardStatus::arpRoutine()
tm.gps_latitude = vn300.latitude; /*< [deg] Latitude*/
tm.gps_longitude = vn300.longitude; /*< [deg] Longitude*/
tm.gps_height = vn300.altitude; /*< [m] Altitude*/
tm.gps_fix = vn300.fix_ins; /*< Wether the GPS has a FIX*/
tm.gps_fix = vn300.fix_gps; /*< Wether the GPS has a FIX*/
tm.log_number =
Logger::getInstance().getCurrentLogNumber(); /*< Log number*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment