Commit Graph
25 Commits
Author SHA1 Message Date
tthandClaude Opus 5 9383ec2221 feat(telemetry): dotaz na polohu nahřeje duty-cyklovanou GPS na příště
Uzel s `gps duty` odpovídal na telemetrii polohou starou až celý
GPS_DUTY_SYNC_INTERVAL_SECS (u nás 30 min). Dotaz s LOCATION právem teď
předsune nejbližší okno na hned, takže NÁSLEDUJÍCÍ dotaz dostane čerstvou
polohu. Při periodickém sběru to stojí jeden cyklus a nepotřebuje to,
aby uzel cokoli věděl o rozvrhu sběru.

Čekat na fix v rámci té odpovědi nejde: odpověď se skládá a odesílá
synchronně (BaseChatMesh.cpp:290), zatímco warm fix trval na T1000-E
změřených ~65 s -- a klient čeká 10 s. Meshtastic to ostatně řeší stejně,
position request tam vrací poslední známou polohu a GPS jede na vlastním
`gps_update_interval`.

Metoda je na SensorManageru, takže ji mají obě implementace: T1000
(vlastní manager) i EnvironmentSensorManager (SenseCAPy). Budí jen když
uzel opravdu duty-cykluje -- `gps on` už běží a `gps off` je přání
uživatele, které telemetrický dotaz nemá přebíjet.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pwhe5XoCuuEbBCNLvsJBPL
2026-09-01 00:19:09 +02:00
tthandClaude Opus 5 7ffb8d0b8f feat(t1000-e): gps duty cycle — deska ho neměla vůbec
9c033063 spravil persistenci prefs, jenže na T1000-E nebylo co
persistovat: tahle varianta má vlastní T1000SensorManager a celá duty
mašinérie žila jen v EnvironmentSensorManager, který nepoužívá. Slovo
"duty" se ve variants/t1000-e/ nevyskytovalo ani jednou.

Projevilo se to tiše, protože setSettingValue bral všechno nenulové jako
"zapni": `gps:2` tedy vrátilo OK a rozsvítilo GPS naplno. Ověřeno na
a-card — po nastavení i po rebootu hlásila `gps:1`.

Konstanty GPS_DUTY_* se stěhují do SensorManager.h, aby je viděly obě
implementace místo duplikátu.

Jeden záměrný rozdíl proti environment verzi: off-stavem je tady
sleep_gps(), ne stop_gps(). Sleep drží GPS_VRTC_EN, takže si přijímač
nechá almanach a další okno chytá teplý fix; stop shodí i VRTC a platil
by se studený start každých 30 minut — přesně to, čemu se duty vyhýbá.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pwhe5XoCuuEbBCNLvsJBPL
2026-08-31 22:54:07 +02:00
Scott Powell 8903b907d1 * Refactor: removed duplicated radio_rng_seed(), radio_set_params(), radio_set_tx_power() 2026-05-01 14:47:07 +10:00
overkillfpv 78cc18f919 changed to set the preamble on radio settings change 2026-03-29 21:45:16 +11:00
Wessel Nieboer 20e71ebc53 Allow negative tx power
Like SX1262 allows -9 dBm lowest, some allow lower but that probably
isn't useful
2026-02-06 02:24:51 +01:00
entr0p1 dc0e4c6707 Fixed T1000-E temperature and lux sensors 2025-12-19 23:51:36 +11:00
ViezeVingertjes 44dd96dc0c T1000-E: refactor GPS initialization; set GPS_RESETB pin as OUTPUT and remove redundant pin settings 2025-09-06 20:42:11 +02:00
liquidraver ee7aa4341c LR's corrected calculation override (instead of SX) and minor changes according to radiolib's wiki 2025-07-04 16:40:19 +02:00
Florent de Lamotte fe65995b42 t1000e: set preamble to 16 at init 2025-07-01 15:42:54 +02:00
Florent de Lamotte 640c75cb8a t1000e: don't update position if gps is off 2025-06-16 09:14:42 +02:00
Florent 09db0bc35b t1000e: light and temp sensor support 2025-06-02 19:33:48 +02:00
Florent 1814599ba7 t1000: remove sync custom var 2025-06-01 15:32:02 +02:00
Florent 40600e3f4a gps : sync time on fix 2025-05-31 10:57:22 +02:00
Scott Powell 19d506f4b3 * big refactor of the 'display' object. Now defined in variants/*/target modules. 2025-05-19 14:16:55 +10:00
JQ b25060fc8e fix altitude for telemetry, instead of using zero 2025-05-18 16:36:45 -07:00
Scott Powell 188b145203 * refactor: LocationProvider classes moved to src/helpers/sensors
* refactor:  Heltec_Wireless_Tracker* env moved to new variants/heltec_tracker dir
2025-05-08 13:23:53 +10:00
Florent de Lamotte d7fb7aa630 fix for set_custom_var 2025-05-05 16:40:00 +02:00
Scott Powell f4d8b559b5 * SensorManager: now can influence advert lat/lon, new custom name:value pairs for custom settings (eg, gps on/off)
* companion: new CMD_GET_CUSTOM_VARS, CMD_SET_CUSTOM_VAR
* T1000e: now supports "gps" custom setting (value "0" or "1")
2025-05-05 00:15:35 +10:00
Florent 7ebc4fe9bf t1000e quick and dirty integration of gps into telemetry framework 2025-05-03 17:00:53 +02:00
Scott Powell 2745f73f50 * new: SensorManager
* BasChatMesh: new onContactRequest(), for PAYLOAD_TYPE_REQ handling.
* companion, repeater and room_server: now with basic 'plumbing' to handle REQ_TYPE_GET_TELEMETRY_DATA (0x03).
* dependency: added CayenneLPP to libdeps
* all target.* modules now with a stub 'sensors' object.
2025-05-03 13:14:03 +10:00
Florent 90aaa41d84 Remove rtc auto-detect on t1000 2025-03-30 15:09:40 +02:00
Scott Powell 06684438b3 * refactor: rtc_clock now defined by variants/*/target modules 2025-03-27 21:28:06 +11:00
Scott Powell c8fa816dfc * new ESPNOWRadio driver
* refactored the examples/*/main.cpp modules, moving radio specifics to variants/*/target modules
* new Generic_ESPNOW_* target envs
2025-03-27 19:34:16 +11:00
Florent de Lamotte 292349c7e0 Some fixes for range issue 2025-03-21 15:08:13 +01:00
Scott Powell 41918efd6d * BIG refactor: 'board' and 'radio' objects now defined in 'target.h/.cpp'
* mesh::RTCClock class moved to MeshCore.h
2025-03-21 18:57:12 +11:00