From 4b85565609759892a0153af0ce8cdb74cf0728de Mon Sep 17 00:00:00 2001 From: Leonard Hall Date: Sun, 13 Oct 2024 16:19:49 +1030 Subject: [PATCH] FSOPowerStack: Add version number --- Tools/AP_Periph/FSOPowerStack.cpp | 4 ++++ Tools/AP_Periph/FSOPowerStack.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/AP_Periph/FSOPowerStack.cpp b/Tools/AP_Periph/FSOPowerStack.cpp index 6c31d40d5735e..541fe505cc297 100644 --- a/Tools/AP_Periph/FSOPowerStack.cpp +++ b/Tools/AP_Periph/FSOPowerStack.cpp @@ -411,6 +411,10 @@ void FSOPowerStack::update_main_power() case TurnOnState::Off: if (main_on == true) { main_state = TurnOnState::PreChargeStart; + if (version_displayed) { + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "PowerStack Version: 1.1"); + version_displayed = true; + } } break; diff --git a/Tools/AP_Periph/FSOPowerStack.h b/Tools/AP_Periph/FSOPowerStack.h index 2321ba4370173..0f48ba3f6738f 100644 --- a/Tools/AP_Periph/FSOPowerStack.h +++ b/Tools/AP_Periph/FSOPowerStack.h @@ -53,8 +53,8 @@ class FSOPowerStack { AP_Float cal_payload_P2c1; AP_Float cal_payload_P2c2; - uint32_t last_update_ms; + bool version_displayed = false; struct FAN { uint8_t pin;