Alt limit fixed to 2km

This commit is contained in:
oh3bsg 2023-10-16 22:39:13 +03:00
parent e5c2e2db77
commit e1abacf880
2 changed files with 8 additions and 1 deletions

View File

@ -513,6 +513,13 @@ void Sonde::receive() {
if (!event) event = timeoutEvent(si);
else sonde.dispsavectlON();
int action = (event==EVT_NONE) ? ACT_NONE : disp.layout->actions[event];
#if 1
if ((res==RX_OK || res==RX_ERROR) && (si->d.alt > 2000.0f)) {
action = ACT_NEXTSONDE;
}
#endif // 0
//if(action!=ACT_NONE) { Serial.printf("event %x: action is %x\n", event, action); }
// If action is to move to a different sonde index, we do update things here, set activate
// to force the sx1278 task to call sonde.setup(), and pass information about sonde to

View File

@ -1,4 +1,4 @@
const char *version_name = "rdzTTGOsonde";
const char *version_id = "devel20230829";
const char *version_id = "multich_v3";
const int SPIFFS_MAJOR=2;
const int SPIFFS_MINOR=17;