Antenna length Calculator fix

Calculation now rounds up decimals so result is more accurate.
This commit is contained in:
euquiq 2020-06-13 21:21:32 -03:00
parent 7fba40172f
commit 46c076c296
2 changed files with 27 additions and 7 deletions

View file

@ -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 {