Skip to content

Commit

Permalink
Move defines to the header so they can be reused elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
dforsi committed Jun 4, 2024
1 parent 0772138 commit aeab5d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions plugins/feature/satellitetracker/satellitetrackersettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@

#include "satellitetrackersettings.h"

#define DEAFULT_TARGET "ISS"
#define DEFAULT_TLES {"https://db.satnogs.org/api/tle/", "https://www.amsat.org/tle/current/nasabare.txt", "https://celestrak.org/NORAD/elements/gp.php?GROUP=weather&FORMAT=tle", "https://celestrak.org/NORAD/elements/gp.php?GROUP=gps-ops&FORMAT=tle", "https://celestrak.org/NORAD/elements/gp.php?CATNR=36395&FORMAT=tle"}
#define DEFAULT_DATE_FORMAT "yyyy/MM/dd"
#define DEFAULT_AOS_SPEECH "${name} is visible for ${duration} minutes. Max elevation, ${elevation} degrees."
#define DEFAULT_LOS_SPEECH "${name} is no longer visible."

SatelliteTrackerSettings::SatelliteTrackerSettings() :
m_rollupState(nullptr)
{
Expand Down
6 changes: 6 additions & 0 deletions plugins/feature/satellitetracker/satellitetrackersettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@

class Serializable;

#define DEAFULT_TARGET "ISS"
#define DEFAULT_TLES {"https://db.satnogs.org/api/tle/", "https://www.amsat.org/tle/current/nasabare.txt", "https://celestrak.org/NORAD/elements/gp.php?GROUP=weather&FORMAT=tle", "https://celestrak.org/NORAD/elements/gp.php?GROUP=gps-ops&FORMAT=tle", "https://celestrak.org/NORAD/elements/gp.php?CATNR=36395&FORMAT=tle"}
#define DEFAULT_DATE_FORMAT "yyyy/MM/dd"
#define DEFAULT_AOS_SPEECH "${name} is visible for ${duration} minutes. Max elevation, ${elevation} degrees."
#define DEFAULT_LOS_SPEECH "${name} is no longer visible."

#define SAT_COL_COLUMNS 18

struct SatelliteTrackerSettings
Expand Down

0 comments on commit aeab5d9

Please sign in to comment.