30
30
//
31
31
// MARK: Version Information (CHANGE VERSION HERE)
32
32
//
33
- constexpr float VERSION_NR = 1 .15f ;
33
+ constexpr float VERSION_NR = 1 .20f ;
34
34
constexpr bool VERSION_BETA = false ;
35
35
extern float verXPlaneOrg; // version on X-Plane.org
36
36
extern int verDateXPlaneOrg; // and its date
@@ -97,6 +97,12 @@ constexpr float MDL_EXT_FAST_DEG = 5.0f;
97
97
constexpr float MDL_EXT_STEP_FACTOR = 1 .025f ; // step factor with one zoom command
98
98
constexpr float MDL_EXT_FAST_FACTOR = 1 .1f ;
99
99
#define MDL_LABEL_COLOR " LABEL_COLOR"
100
+ constexpr double MDL_REVERSERS_TIME = 2.0 ; // /< [s] to open/close reversers
101
+ constexpr double MDL_SPOILERS_TIME = 0.5 ; // /< [s] to extend/retract spoilers
102
+ constexpr double MDL_TIRE_SLOW_TIME = 5.0 ; // /< [s] time till tires stop rotating after take-off
103
+ constexpr double MDL_TIRE_MAX_RPM = 2000 ; // /< [rpm] max tire rotation speed
104
+ constexpr double MDL_TIRE_CF_M = 3.2 ; // /< [m] tire circumfence (3.2m for a 40-inch tire)
105
+ constexpr double MDL_GEAR_DEFL_TIME = 0.5 ; // /< [s] time for gear deflection (one direction...up down is twice this value)
100
106
101
107
constexpr int COLOR_YELLOW = 0xFFFF00 ;
102
108
constexpr int COLOR_RED = 0xFF0000 ;
@@ -110,7 +116,7 @@ extern char HTTP_USER_AGENT[]; // like "LiveTraffic/1.0"
110
116
extern time_t LT_BETA_VER_LIMIT; // BETA versions are limited
111
117
extern char LT_BETA_VER_LIMIT_TXT[];
112
118
#define BETA_LIMITED_VERSION " BETA limited to %s"
113
- #define BETA_LIMITED_EXPIRED " BETA-Version limited to %s has EXPIRED -> SHUTTING DOWN!"
119
+ #define BETA_LIMITED_EXPIRED " BETA-Version limited to %s has EXPIRED -> SHUTTING DOWN! Get an up-to-date version from X-Plane.org. "
114
120
constexpr int LT_NEW_VER_CHECK_TIME = 48 ; // [h] between two checks of a new
115
121
116
122
// MARK: Text Constants
@@ -119,7 +125,7 @@ constexpr int LT_NEW_VER_CHECK_TIME = 48; // [h] between two checks of a new
119
125
#define LT_CFG_VERSION " 1.1" // current version of config file format
120
126
#define LT_FM_VERSION " 1.1" // version of flight model file format
121
127
#define PLUGIN_SIGNATURE " TwinFan.plugin.LiveTraffic"
122
- #define PLUGIN_DESCRIPTION " Create Multiplayer Aircrafts based on live traffic."
128
+ #define PLUGIN_DESCRIPTION " Create Multiplayer Aircraft based on live traffic."
123
129
#define LT_DOWNLOAD_URL " https://forums.x-plane.org/index.php?/files/file/49749-livetraffic/"
124
130
#define LT_DOWNLOAD_CH " X-Plane.org"
125
131
#define MSG_DISABLED " Disabled"
@@ -130,20 +136,21 @@ constexpr int LT_NEW_VER_CHECK_TIME = 48; // [h] between two checks of a new
130
136
#define MSG_LT_NEW_VER_AVAIL " The new version %01.2f of LiveTraffic is available at X-Plane.com!"
131
137
#define MSG_REQUESTING_LIVE_FD " Requesting live flight data online..."
132
138
#define MSG_READING_HIST_FD " Reading historic flight data..."
133
- #define MSG_NUM_AC_INIT " Initially created %d aircrafts "
134
- #define MSG_NUM_AC_ZERO " No more aircrafts displayed"
135
- #define MSG_BUF_FILL_COUNTDOWN " Filling buffer: seeing %d aircrafts , displaying %d, still %d seconds to buffer"
139
+ #define MSG_NUM_AC_INIT " Initially created %d aircraft "
140
+ #define MSG_NUM_AC_ZERO " No more aircraft displayed"
141
+ #define MSG_BUF_FILL_COUNTDOWN " Filling buffer: seeing %d aircraft , displaying %d, still %d seconds to buffer"
136
142
#define MSG_HIST_WITH_SYS_TIME " When using historic data you cannot run X-Plane with 'always track system time',\n instead, choose the historic date in X-Plane's date/time settings."
143
+ #define MSG_ADSBEX_LIMITE " %ld / %ld requests left"
137
144
#define INFO_AC_ADDED " Added aircraft %s, operator '%s', a/c model '%s', flight model [%s], bearing %.0f, distance %.1fkm"
138
145
#define INFO_AC_MDL_CHANGED " Changed CSL model for aircraft %s, operator '%s': a/c model now '%s'"
139
146
#define INFO_AC_REMOVED " Removed aircraft %s"
140
- #define INFO_AC_ALL_REMOVED " Removed all aircrafts "
147
+ #define INFO_AC_ALL_REMOVED " Removed all aircraft "
141
148
#define INFO_WND_AUTO_AC " AUTO"
142
149
#define INFO_AC_HIDDEN " A/c %s hidden"
143
150
#define INFO_AC_HIDDEN_AUTO " A/c %s automatically hidden"
144
151
#define INFO_AC_SHOWN " A/c %s visible"
145
152
#define INFO_AC_SHOWN_AUTO " A/c %s automatically visible"
146
- #define MSG_TOO_MANY_AC " Reached limit of %d aircrafts , will create new ones only after removing outdated ones."
153
+ #define MSG_TOO_MANY_AC " Reached limit of %d aircraft , will create new ones only after removing outdated ones."
147
154
#define MSG_CSL_PACKAGE_LOADED " Successfully loaded CSL package %s"
148
155
#define MSG_MDL_FORCED " Settings > Debug: Model matching forced to '%s'/'%s'/'%s'"
149
156
#define MSG_MDL_NOT_FORCED " Settings > Debug: Model matching no longer forced"
@@ -167,8 +174,8 @@ constexpr int LT_NEW_VER_CHECK_TIME = 48; // [h] between two checks of a new
167
174
#define MENU_AC_INFO_WND_POPOUT " Aircraft Info... (Popped out)"
168
175
#define MENU_AC_INFO_WND_SHOWN " Aircraft Info shown"
169
176
#define MENU_AC_INFO_WND_CLOSEALL " Close All Windows"
170
- #define MENU_TOGGLE_AIRCRAFTS " Aircrafts displayed"
171
- #define MENU_TOGGLE_AC_NUM " Aircrafts displayed (%d shown)"
177
+ #define MENU_TOGGLE_AIRCRAFTS " Aircraft displayed"
178
+ #define MENU_TOGGLE_AC_NUM " Aircraft displayed (%d shown)"
172
179
#define MENU_HAVE_TCAS " TCAS controlled"
173
180
#define MENU_TOGGLE_LABELS " Labels shown"
174
181
#define MENU_SETTINGS_UI " Settings..."
@@ -214,8 +221,11 @@ constexpr int LT_NEW_VER_CHECK_TIME = 48; // [h] between two checks of a new
214
221
// MARK: Error Texsts
215
222
constexpr long HTTP_OK = 200 ;
216
223
constexpr long HTTP_BAD_REQUEST = 400 ;
224
+ constexpr long HTTP_UNAUTHORIZED = 401 ;
225
+ constexpr long HTTP_FORBIDDEN = 403 ;
217
226
constexpr long HTTP_NOT_FOUND = 404 ;
218
227
constexpr long HTTP_NOT_AVAIL = 503 ; // "Service not available"
228
+ constexpr long CURL_TIMEOUT = 30 ; // /< [s] network timeout, see CURLOPT_TIMEOUT
219
229
constexpr int CH_MAC_ERR_CNT = 5 ; // max number of tolerated errors, afterwards invalid channel
220
230
constexpr int SERR_LEN = 100 ; // size of buffer for IO error texts (strerror_s)
221
231
#define ERR_XPLANE_ONLY " LiveTraffic works in X-Plane only, version 10 or higher"
@@ -231,8 +241,10 @@ constexpr int SERR_LEN = 100; // size of buffer for IO error t
231
241
#define ERR_CURL_PERFORM " %s: Could not get network data: %d - %s"
232
242
#define ERR_CURL_NOVERCHECK " Could not browse X-Plane.org for version info: %d - %s"
233
243
#define ERR_CURL_HTTP_RESP " %s: HTTP response is not OK but %ld"
234
- #define ERR_CURL_REVOKE_MSG " revocation" // appears in error text if querying revocation list fails
244
+ #define ERR_CURL_REVOKE_MSG { " revocation" , " 80092012 " , " 80092013 " } // appear in error text if querying revocation list fails
235
245
#define ERR_CURL_DISABLE_REV_QU " %s: Querying revocation list failed - have set CURLSSLOPT_NO_REVOKE and am trying again"
246
+ #define ERR_HTTP_NOT_OK " HTTP response was not HTTP_OK"
247
+ #define ERR_FOUND_NO_VER_INFO " Found no version info in response"
236
248
#define ERR_CH_NONE_ACTIVE " No enabled active channel for tracking data! Check Basic Settings and enable channels."
237
249
#define ERR_CH_UNKNOWN_NAME " (unknown channel)"
238
250
#define ERR_CH_INVALID " %s: Channel invalid and disabled"
@@ -244,7 +256,7 @@ constexpr int SERR_LEN = 100; // size of buffer for IO error t
244
256
#define ERR_DIR_CONTENT " Could not retrieve directory content for %s"
245
257
#define ERR_JSON_PARSE " Parsing flight data as JSON failed"
246
258
#define ERR_JSON_MAIN_OBJECT " JSON: Getting main object failed"
247
- #define ERR_JSON_ACLIST " JSON: List of aircrafts (%s) not found"
259
+ #define ERR_JSON_ACLIST " JSON: List of aircraft (%s) not found"
248
260
#define ERR_JSON_AC " JSON: Could not get %d. aircraft in '%s'"
249
261
#define ERR_NEW_OBJECT " Could not create new object (memory?): %s"
250
262
#define ERR_LOCK_ERROR " Could not acquire lock for '%s': %s"
@@ -256,7 +268,7 @@ constexpr int SERR_LEN = 100; // size of buffer for IO error t
256
268
#define ERR_POS_UNNORMAL " A/c %s reached invalid pos: %s"
257
269
#define ERR_IGNORE_POS " A/c %s: Ignoring data leading to sharp turn or invalid speed: %s"
258
270
#define ERR_INV_TRANP_ICAO " Ignoring data for invalid transponder code '%s'"
259
- #define ERR_TIME_NONLINEAR " Time moved non-linear/jumped by %.1f seconds, will re-init aircrafts ."
271
+ #define ERR_TIME_NONLINEAR " Time moved non-linear/jumped by %.1f seconds, will re-init aircraft ."
260
272
#define ERR_TOP_LEVEL_EXCEPTION " Caught top-level exception! %s"
261
273
#define ERR_WIDGET_CREATE " Could not create widget required for settings UI"
262
274
#define ERR_CFG_FILE_OPEN_OUT " Could not create config file '%s': %s"
0 commit comments