mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-25 06:49:47 -04:00
Antenna length Calculator fix
Calculation now rounds up decimals so result is more accurate.
This commit is contained in:
parent
7fba40172f
commit
46c076c296
2 changed files with 27 additions and 7 deletions
|
@ -37,7 +37,7 @@ public:
|
|||
|
||||
void focus() override;
|
||||
|
||||
std::string title() const override { return "Whip calculator"; };
|
||||
std::string title() const override { return "Antenna length"; };
|
||||
|
||||
private:
|
||||
const double speed_of_light_mps = 299792458.0; // m/s
|
||||
|
@ -45,6 +45,7 @@ private:
|
|||
|
||||
const std::string frac_str[4] = { "", "1/4 ", "1/2 ", "3/4 " };
|
||||
|
||||
double get_decimals(double num, int16_t mult, bool round = false);
|
||||
void update_result();
|
||||
|
||||
Labels labels {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue