-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GS] Add Imperial Units This patch adds support for imperial units on the Ground Station. Closes #375. Other changes: - Fix issue introduced by PR#379.
- Loading branch information
1 parent
dd4beb5
commit 0580863
Showing
10 changed files
with
175 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/// Copyright (C) 2020, 2024 Control and Telemetry Systems GmbH | ||
/// | ||
/// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "hmi/settings.hpp" | ||
#include "config.hpp" | ||
|
||
// NOLINTNEXTLINE(cppcoreguidelines-interfaces-global-init) | ||
const device_settings_t settingsTable[][4] = { | ||
{ | ||
{"Stop Logging", | ||
"Down: Stop the log at touchdown", | ||
"Never: Never stop logging after liftoff", | ||
TOGGLE, | ||
{.lookup = TABLE_LOGGING}, | ||
&systemConfig.config.neverStopLogging}, | ||
|
||
{ | ||
"Version", | ||
"Firmware Version: " FIRMWARE_VERSION, | ||
"", | ||
BUTTON, | ||
{.fun_ptr = nullptr}, | ||
nullptr, | ||
}, | ||
{ | ||
"Start Bootloader", | ||
"Press A to start the bootloader", | ||
"Make sure you are connected to a computer", | ||
BUTTON, | ||
{.fun_ptr = Utils::startBootloader}, | ||
nullptr, | ||
}, | ||
}, | ||
{ | ||
{"Mode", | ||
"Single: Use both receiver to track one rocket", | ||
"Dual: Use both receivers individually", | ||
TOGGLE, | ||
{.lookup = TABLE_MODE}, | ||
&systemConfig.config.receiverMode}, | ||
{"Link Phrase 1", | ||
"Single Mode: Set phrase for both receivers", | ||
"Dual Mode: Set phrase for the left receiver", | ||
STRING, | ||
{.stringLength = kMaxPhraseLen}, | ||
systemConfig.config.linkPhrase1}, | ||
{"Link Phrase 2", | ||
"Single Mode: No functionality", | ||
"Dual Mode: Set phrase for the right receiver", | ||
STRING, | ||
{.stringLength = kMaxPhraseLen}, | ||
systemConfig.config.linkPhrase2}, | ||
{"Testing Phrase", | ||
"Set the phrase for the testing mode", | ||
"", | ||
STRING, | ||
{.stringLength = kMaxPhraseLen}, | ||
systemConfig.config.testingPhrase}, | ||
}, | ||
{ | ||
{"Time Zone", | ||
"Time offset relative to UTC", | ||
"", | ||
NUMBER, | ||
{.minmax = {.min = -12, .max = 12}}, | ||
&systemConfig.config.timeZoneOffset}, | ||
{"Units", "Metric: meters", "Imperial: feet", TOGGLE, {.lookup = TABLE_UNIT}, &systemConfig.config.unitSystem}, | ||
}}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.