Skip to content

Commit

Permalink
FSOPowerStack: Add version number
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall committed Oct 13, 2024
1 parent a7ee83a commit 4b85565
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Tools/AP_Periph/FSOPowerStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion Tools/AP_Periph/FSOPowerStack.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4b85565

Please sign in to comment.