Jonathan Bennett
a42266f74b
GPS: Fix checksum and remove spurious returns
2023-08-28 04:05:45 -05:00
code8buster
fcfd83bc89
Remove auto GPS shutoff for fixed position nodes ( #2720 )
2023-08-13 15:56:49 -05:00
Jonathan Bennett
d29c975e3c
Comment out extra-chatty debug message ( #2715 )
2023-08-12 13:51:31 -05:00
Jonathan Bennett
c44986127e
More GPS work ( #2711 )
...
Increase GPS buffer on esp32
Check for and flush GPS buffer when overfilled and corrupted.
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-08-12 09:29:44 -05:00
Jonathan Bennett
9470d4694b
Pickier parsing of NMEA to detect an L76K chip ( #2699 )
...
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-08-10 11:21:35 -05:00
Neil Hao
42039e27e7
Initialize the L76K Chip, use GPS + GLONASS + BEIDOU ( #2680 )
...
* 'nano-g2-ultra'
* revert overcommit
* nano-g2-ultra-fmt
* revert overcommit
* revert overcommit
* Added BEIDOU support to L76K
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-08-06 08:28:37 -05:00
Thomas Göttgens
e0bf15b80e
trunk fmt
2023-08-03 10:05:38 +02:00
Jm Casler
5f38e79b8f
Add documentation to a few areas
2023-08-03 10:05:38 +02:00
Jonathan Bennett
06a6a992c2
GPS Fixes for nrf52 ( #2675 )
...
Expands board serial buffer from 64 (!) to 1024
Adds some debugging messages when problems are detected.
2023-08-02 10:08:59 -05:00
code8buster
8927cffd64
GPS log modifications ( #2609 )
...
* Move module info for use in functions outside of probe, refmt MON-VER message
* use checksum function in probe message
* Housekeeping on some comments, unsign the position ctr again
2023-07-17 20:27:14 -05:00
Manuel
ab32503601
Heltec-Tracker: GPS support ( #2615 )
...
* Heltec-Tracker: GPS support
* trunk fmt
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-07-16 16:57:14 -05:00
luzpaz
003047baaf
Fix various typos ( #2607 )
...
* Fix various typos
Found via `codespell -q 3 -L acount,clen,dout`
* Trunk reformatting
---------
Co-authored-by: code8buster <communismisgreat@national.shitposting.agency>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-07-14 16:25:20 -05:00
Ben Meadors
4ace59fc18
Partial Heltec Wireless Paper and Wireless Tracker support ( #2594 )
...
* WIP
* Comment
* WIP
* TFT_CTRL
* Update platformio.ini
update to current latest version available
* Update EInkDisplay2.cpp
Is the e-ink Display a DEPG0213BN ?
* Logging
* trunk fmt
---------
Co-authored-by: Mark Trevor Birss <markbirss@gmail.com>
2023-07-14 16:12:30 -05:00
Dmitry Galenko
aa0b56e947
GPS: Implement Power Management, Refactor Code and Fix GSA Message Configuration for U-Blox hardware ( #2606 )
2023-07-12 19:35:41 -05:00
Ben Meadors
de53280ffc
PIN_GPS_EN power toggling ( #2592 )
...
* PIN_GPS_EN
* Remove extra digitalWrite
* GPS_POWER_TOGGLE macro enabled. Added WSLv3 too
* Update variant.h
* Update variant.h
* Fixed macro guard
2023-07-08 21:01:00 -05:00
Max-Plastix
da389eb787
Correct unused variable warning and typo around GNSS_MODEL_UNKNOWN ( #2596 )
...
* Small warning and typo cleanup.
* Update GPS.cpp (missed one instance of GNSS_MODEL_UNKONW)
2023-07-08 18:30:52 -05:00
Dmitry Galenko
4ef61f0f15
GPS: Performance improvment for U-Blox hardware ( #2574 )
...
* Add proper configuration procedure for U-Blox modules
* More human friendly getACK
* Fix checksum calculation and payload
* GPS: move unsigned int check
* Introduce UBX protocol payload checksuming
* Fix missed checksums calculation for UBX-CFG-CFG
2023-07-01 19:20:40 -05:00
Ben Meadors
a2c5b92840
NodeDB Lite migration ( #2554 )
...
* Skadoosh
* Removing deprecated fields
* Remove remaining deprecations
* Macro
* Macro
* WIP conversion
* Lots of type conversions between Lite versions and new NodeDB methods
* Trunk
* Conversion
* NULL
* Init
* Rename
* Position
* Reworked conversion to NodeInfo for PhoneAPI
2023-06-17 09:10:09 -05:00
Ben Meadors
9ddbfc0e3e
CalTopo NMEA mode ( #2526 )
...
* CalTopo NMEA mode
* Didn't need that actually
* Missed a paren
2023-05-28 14:56:44 -05:00
Thomas Göttgens
b4ff37104a
fix NMEA Timestamp for good
2023-05-06 23:16:39 +02:00
Thomas Göttgens
81bfd69a41
fmt
2023-05-06 18:13:52 +02:00
Thomas Göttgens
cdc8bf44e9
use the device time, only use gps timestamp as a fallback.
2023-05-06 18:10:00 +02:00
Thomas Göttgens
39aa756100
wrong datapoint
2023-05-05 14:29:14 +02:00
Thomas Göttgens
17e25babb1
probably fixes #2451 - please test
2023-05-05 14:29:14 +02:00
A. Rager
e6d69e2b67
Refactor i2cScan.h To Handle 2 Bus ( #2337 )
...
* Break i2cScan out into a set of classes for scanning i2c
* refactor i2cscan addresses to be structs that allow addressing by port + address
* build whoopsies
* trunk fmt
* trunk fmt
* lost some build fixes from the merge
* more cleaning for build safety, RTC behavior
2023-03-08 21:13:46 -06:00
Ben Meadors
e8908784f9
Format
2023-01-28 06:39:14 -06:00
Ben Meadors
de82119415
Start of repeater role with in firmware
2023-01-28 06:38:13 -06:00
code8buster
53d096b58e
Disable the GPS thread after factory reset has been requested
2023-01-23 06:34:28 -05:00
Ben Meadors
fab663d1b7
Merge branch 'master' into gps-fixedposboot
2023-01-21 20:34:41 -06:00
Thomas Göttgens
6fdb93cd16
re-add namespacing in protobufs. Let's see what i missed. Portduino likely ...
...
Checking in generated on purpose.
2023-01-21 21:23:24 +01:00
Thomas Göttgens
51b2c431d9
trunk roundhouse kick
2023-01-21 21:23:24 +01:00
code8buster
52e8dc7317
just do sleep through the observer like I have been
2023-01-21 08:33:43 -05:00
code8buster
fdc47728af
Put GPS thread to sleep post factory reset request
2023-01-21 07:21:23 -05:00
code8buster
54b4b67e5c
add logic for GPS single acquisition on bootup fixed-position
2023-01-21 07:21:23 -05:00
Thomas Göttgens
2b9f01f0e4
fix cppcheck
2023-01-16 11:08:48 +01:00
Thomas Göttgens
aca1241a7f
Having a first stab at flawfinder errors
2023-01-16 10:55:40 +01:00
Thomas Göttgens
03c5dfc7a8
initial cleanup work
2023-01-07 13:16:58 +01:00
Ben Meadors
f1cdfd163d
Replaced all of the logging with proper log levels
2022-12-30 10:27:07 -06:00
Ben Meadors
0b5cae5393
Log levels refactoring
2022-12-29 20:41:37 -06:00
code8buster
06be74ae7c
Added indicative text to screen for disabled GPS, made sleep methods private again
2022-12-14 19:58:15 -05:00
code8buster
8507125e98
Remove extraneous flag, use gps_enabled. Ensure factory reset is not triggered while chip is off and gps_enabled=0
2022-12-13 17:23:58 -05:00
code8buster
53da7cb036
Add initialized value to constructor
2022-12-04 02:38:14 -05:00
code8buster
911083c49d
Adds a flag to turn the GPS power rail off entirely on tbeam
2022-12-04 01:57:00 -05:00
Thomas Göttgens
cf783a5bae
make GPS pins configurable through protos
2022-11-24 09:23:17 +01:00
Thomas Göttgens
7ceb52103e
Cleaning up GPS Code a bit
2022-11-19 09:58:29 +01:00
Thomas Göttgens
6a696af8f6
Revert "remember which devices were scanned on which bus and set them accordingly." - this is not working at all.
2022-11-13 14:56:52 +01:00
Thomas Göttgens
861ded37db
remember which devices were scanned on which bus and set them accordingly.
2022-11-12 17:12:40 +01:00
Thomas Göttgens
7a67388a97
Merge branch 'master' of github.com:meshtastic/firmware into develop
2022-11-12 14:34:51 +01:00
lewishe
dff6eeb90e
Merge branch 'master' of https://github.com/lewisxhe/Meshtastic-device
2022-11-12 15:16:54 +08:00
lewishe
cd95d0865f
Repair the sharing of Wire1 between RTC and PMU in tbeams3
2022-11-12 15:12:53 +08:00
Thomas Göttgens
222424a80c
no excuses, this was a SNAFU
2022-11-10 23:06:37 +01:00
Thomas Göttgens
5c59c8d701
GPS Update
2022-11-10 22:21:07 +01:00
Thomas Göttgens
87f7a60f71
fix #1931 coordinates inserted into NMES stream
2022-11-10 13:51:22 +01:00
Thomas Göttgens
b004706eff
fix #1928 valid NMEA sentences
2022-11-09 23:42:52 +01:00
Ben Meadors
6694d31d07
Somehow I still missed one :-|
2022-11-06 18:22:52 +01:00
Ben Meadors
d15edf1955
Update NMEAWPL.h
2022-11-06 18:22:52 +01:00
Ben Meadors
e1ce037550
Update NMEAWPL.cpp
2022-11-06 18:22:52 +01:00
Ben Meadors
f9c376a524
Update NMEAWPL.cpp
2022-11-06 18:22:52 +01:00
Ben Meadors
26a907444c
Fix for alpine linux builds
2022-11-06 18:22:52 +01:00
Ben Meadors
9c0483975c
Somehow I still missed one :-|
2022-11-05 15:34:54 -05:00
Ben Meadors
d641adc0fc
Update NMEAWPL.h
2022-11-05 15:20:09 -05:00
Ben Meadors
a7a020f431
Update NMEAWPL.cpp
2022-11-05 15:14:08 -05:00
Ben Meadors
a08ac5a47e
Update NMEAWPL.cpp
2022-11-05 15:11:11 -05:00
Ben Meadors
30e5706eaa
Fix for alpine linux builds
2022-11-05 15:10:43 -05:00
Thomas Göttgens
cc73d2c2f2
Sigh...
2022-10-16 16:51:17 +02:00
Thomas Göttgens
b1f789dddd
fix cppcheck
2022-10-16 16:45:32 +02:00
Thomas Göttgens
d3e9dbf6a9
Add NMEA output mode (my own position, and other devices as waypoints) to serial module
2022-10-16 16:37:38 +02:00
Thomas Göttgens
27bcf67c0c
add routine to output waypoint data
2022-10-16 12:28:49 +02:00
Ben Meadors
028b25cfe8
Change RTCQuality acceptance criteria ( #1797 )
...
Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
2022-10-14 19:12:55 -05:00
Thomas Göttgens
62498d0935
GPS Rollup, incorporates changes from @pmarches and @lewisxhe
2022-10-05 14:59:07 +02:00
Thomas Göttgens
c34198264a
Merge branch 'master' into pcf8563rtc
2022-10-04 09:38:33 +02:00
Thomas Göttgens
73a5357d0e
Brainfart. This is already km/h
2022-10-04 08:11:07 +02:00
Thomas Göttgens
cf124d97b8
Clean up GPS code and add some flags per #1740
2022-10-03 20:30:11 +02:00
Thomas Göttgens
7f0fb2a2b6
Move file to right spot in source tree
2022-09-28 20:13:41 +02:00
Thomas Göttgens
207f701f0a
Update GPS.cpp
2022-09-19 15:46:59 +02:00
Thomas Göttgens
dd8cb1c7fb
Small fixes for ESP Serial Init and Power FSM debug garble.
2022-09-19 15:36:48 +02:00
lewis he
9481461145
Add GNSS model recognition functio ( #1696 )
...
* Add GNSS model recognition function
* Fix GNSS initialization failure
* GPS.cpp difference between runOnce and ESP32S3 and ESP32 versions
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2022-09-15 13:43:04 -05:00
Ben Meadors
397030b5a6
GPS intervals ( #1693 )
...
* GPS intervals
* Backwards logic
* Oops
2022-09-12 18:07:21 -05:00
Ben Meadors
18f37981bb
Spelling and fixing defaults
2022-09-12 07:55:17 -05:00
Thomas Göttgens
42d2986cb8
Reinstate GPS Flag
2022-09-12 09:37:21 +02:00
Sacha Weatherstone
60b4dbfdcd
More default inits. ( #1689 )
...
* More default inits.
* update protobufs
* Try checking has_device first
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2022-09-11 08:36:47 -05:00
Thomas Göttgens
7f293bfda3
Merge branch 'master' into master
2022-09-09 21:39:29 +02:00
Thomas Göttgens
f7b12f0695
Adapt to new protobufs - TODO: factory_reset rewire
2022-09-09 12:51:41 +02:00
lewishe
2088036521
Differentiate t-beam-s3 GNSS from t-echo
2022-09-08 10:52:03 +08:00
lewishe
5621719eef
Add tbeam esp32s3 version support, replace AXP202X_Library with XPowersLIb
2022-09-06 15:58:33 +08:00
Ben Meadors
874d308b50
Only save devicestate on GPS reset ( #1587 )
2022-08-03 07:16:41 -05:00
majbthrd
ade32b1827
lay groundwork for a possible future architecture ( #1571 )
...
* lay groundwork for a possible future architecture
* switch from feature opt-out to feature opt-in
* lay groundwork for a possible future architecture
* switch from feature opt-out to feature opt-in
* fix USE_RTC in variant.h for rak4631_epaper and t-echo
* ensure Screen.h is not included without configuration.h
Co-authored-by: Peter Lawrence <12226419+majbthrd@users.noreply.github.com>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2022-07-31 07:11:47 -05:00
loodydo
f8ee1ac4f9
Update GeoCoord.cpp ( #1540 )
...
Adding clarification to comments on GeoCoord::bearing function.
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2022-07-02 07:05:10 -05:00
Thomas Göttgens
53e9f4df46
Segemented config works for me (TM)
...
Small GPS Fix that cropped up while testing included.
2022-05-21 22:38:33 +02:00
Thomas Göttgens
5d22efd8a8
remove duplicate GPS setting
2022-05-21 20:52:43 +02:00
Thomas Göttgens
3d0d45a695
More UBX stuff from 1.2
2022-05-18 18:29:26 +02:00
Thomas Göttgens
5e82423331
More UBX fixes
2022-05-18 18:16:23 +02:00
Thomas Göttgens
3c5a096873
Streamline GPS Init
2022-05-18 16:16:59 +02:00
Thomas Göttgens
ac93e3196e
Don't try to be too smart
2022-05-17 20:53:57 +02:00
Thomas Göttgens
7f9bb5748e
log UBX Init
2022-05-17 19:54:29 +02:00
Thomas Göttgens
894b091553
Fix ubox gps too or at least log errors
2022-05-17 19:48:48 +02:00
Thomas Göttgens
7576270423
switch GPS back to 9600 baud, seems to work better now we only use the 2 sentences
2022-05-17 19:09:12 +02:00
Sacha Weatherstone
6b0ce6b729
Finish config transition
2022-05-07 20:31:21 +10:00
Thomas Göttgens
4d611ba2f0
Forgot the readFromRTC for PCF8563 (T-Echo)
2022-05-04 17:06:06 +02:00
Thomas Göttgens
516dff5b09
RTC Module support for T-Echo and others with PCF8563
2022-04-28 08:18:03 +02:00
Thomas Göttgens
9e97fac252
- implement generic support for on-device battery powered RTC Modules.
...
- implement support for I2C RV-3028 based RTC modules like the RAK12002
- pretty print some debug timestamps
2022-04-27 11:05:08 +02:00
Thomas Göttgens
701707a01b
- Bounds Check is working on big integers, don't throw away valid coordinates.
...
- Set ublox chips back to NMEA mode if they have been configured wrongly before.
2022-04-26 13:00:11 +02:00
Thomas Göttgens
213d9512f1
WIP: unify the RAK targets into one firmware ( #1350 )
...
* First steps to unify GPS Lib for RAK 1910 and RAK 12500
* Technicalities. Out with the old and build the new.
* Adapt Matrix
* We use 0.4.5 now
* While we're at it, yank the RAK815, it's EOL
* Satisfy CI - for now
* - yank UBX library, talk to GPS chip with NMEA only.
- more autodetect going on, this time for the Eink Display.
TODO: actually do something with the scan findings.
* i swear this works on windows! :-)
* these are only there to make CI happy
* don't update eink display if not detected.
* Replace Oberon Crypt Library with modified Adafruit Library. This elimintaes the need for the sdk-nfxlib submodule.
* - Revert auto screen selection (incomplete)
- Revert nrF crypto engine (needs more work)
- add separate defines for not-auto-selecting screen lib.
* Define 2 new variants for RAK - with or without epaper
* Update variants
Co-authored-by: Sacha Weatherstone <sachaw100@hotmail.com>
Co-authored-by: Ben Meadors <thebentern@tuta.io>
2022-04-25 15:13:41 +10:00
Balázs Kelemen
b76424db50
Make Observer to be able to observe multiple Observables. ( #1234 )
...
* Make Observer to be able to observe multiple Observables.
* Fix Observer destructor cleanup.
Co-authored-by: Sacha Weatherstone <sachaw100@hotmail.com>
2022-04-14 08:43:06 +10:00
Thomas Göttgens
028999697e
Improve T-Echo GPS Handling
2022-04-06 09:18:55 +02:00
Thomas Göttgens
7c4bb80977
Variable GPS Thread Timing, keep default of 100 msec
2022-04-02 12:52:50 +02:00
Thomas Göttgens
4e29984549
Slightly more verbose GPS debug logging
2022-03-31 18:52:40 +02:00
Sacha Weatherstone
2ed8ea10c0
Remove eink0.1 and Air530 files
2022-03-29 22:28:34 +11:00
Thomas Göttgens
72f443c519
free serial pins if gps_disabled is set
2022-03-24 18:22:31 +01:00
Sacha Weatherstone
8adacba3a1
Respect loc_share_disabled
2022-03-20 16:12:55 +11:00
Sacha Weatherstone
e5e25c2f31
Use gps_disabled
2022-03-20 15:57:49 +11:00
Sacha Weatherstone
4cd1570543
make location_share a boolean
2022-03-20 11:01:49 +11:00
Jm Casler
11130496c4
remove is_router in favor of role == Role_Router
2022-03-15 15:49:25 -07:00
Mike Kinney
7c362af3de
more warning fixes
2022-01-24 18:39:17 +00:00
Mike Kinney
caaa235c5d
more cppcheck warnings fixes
2022-01-24 17:24:40 +00:00
Mike Kinney
b3210f6c2c
fix some cppcheck warnings
2022-01-24 07:00:14 +00:00
Jm Casler
654558abcd
Partial work for NTP client
2021-12-28 19:24:10 -08:00
a-f-G-U-C
a911515dec
clean up old data during fix transition
2021-10-28 11:58:08 +00:00
a-f-G-U-C
e89b3bd1ec
implement fix2d and max DOP user settings
2021-10-27 13:30:39 +00:00
a-f-G-U-C
70b80e600d
use Position struct for GPS data
2021-10-24 12:38:35 +00:00
a-f-G-U-C
3893810b76
fix a positional timestamp reading bug ( #886 )
...
* fix a positional timestamp reading bug
* lying about fixType is no longer required
2021-10-24 10:31:44 +11:00
a-f-G-U-C
a914ee133c
fix a rare GPS data corruption condition ( #890 )
...
* fix a rare GPS data corruption condition
* don't use hasLock to determine validity
2021-10-23 14:21:59 +11:00
syund
6fc3c9c868
Inline pow_neg - removes build warning ( #891 )
2021-10-23 11:40:43 +11:00
Sam
96f4998d11
Add functionality for converting lat lon to bearing range and back
2021-10-09 15:03:21 -04:00
Sam
4a98bdd9d6
Move bearing under GeoCoord
2021-10-09 13:31:27 -04:00
Sam
796e8c836a
Move latLongtoMeter under GeoCoord
2021-10-09 13:28:51 -04:00
Sam
7081868143
Spelling fixes. Thanks a-f-G-U-C!
2021-10-09 13:17:23 -04:00
Sam
91bc051e6d
Create GeoCoord class
2021-10-03 15:52:09 -04:00
Kevin Hester
a1b37d3407
Merge branch 'master' into HAE-MSL-banner
2021-09-18 15:59:54 -07:00
a-f-G-U-C
c442fd3886
input sanitization - TinyGPS course()
...
Reduce the impact of issue #863 (and similar issues in the future) by filtering out obvious bogons
2021-09-10 15:12:12 +00:00
a-f-G-U-C
a2f06cb077
Display HAE/MSL mode on startup
2021-09-09 14:12:37 +00:00
a-f-G-U-C
de712ce41a
disable debug code
2021-09-08 14:26:21 +00:00
a-f-G-U-C
f6f9b9cd03
fixes from PR #851 , #858 ported to NMEA GPS
...
apply fixes and upgrades from PR #851 , #858 to NMEA GPS code
2021-09-08 14:02:13 +00:00
a-f-G-U-C
1c06c2af9f
read lat/lon/alt into temp vars instead of global
...
Instead of reading the GPS solution directly into global variables and risking a bad-over-good overwrite (issue #857 ), read it into temporary vars and only update global vars after validation.
Also updates positional timestamp variable and prepares (non-breaking) for HAE altitude support (issue #359 )
2021-09-05 17:11:04 +00:00
a-f-G-U-C
eb27e744f7
add positional timestamp and geoidal separation
...
Relevant to issues #842 and #843 (timestamp) and historical issues #392 and #359 (timestamp, geoidal)
2021-09-05 15:10:06 +00:00
a-f-G-U-C
5cf1a87657
redefine hasLock() for UBlox GPS
2021-09-02 13:21:48 +00:00
a-f-G-U-C
25841c072a
allow GPS modules to redefine GPS::hasLock()
2021-09-02 13:11:11 +00:00
a-f-G-U-C
71951a4e6a
fix a typo
2021-08-30 13:55:50 +00:00
a-f-G-U-C
8dbfd0f19b
disable gps powercycle for small gps_update_interval
2021-08-30 13:45:42 +00:00
Kevin Hester
17a1262382
pull in new epaper lib (which required importing configuration.h everywhere
...
for dumb reasons)
2021-06-27 10:56:28 -07:00
Kevin Hester
f40c6f21d4
fix portduino rtc
2021-05-03 09:30:03 +08:00
Kevin Hester
babc1b3613
include file/lineno in critical error logs
2021-04-29 09:52:15 +08:00
Kevin Hester
7224782d23
rak4631: gps now works
2021-04-11 15:17:56 +08:00
Kevin Hester
a9c8564524
fix millisecond unsigned rollover errors found via portduino
2021-03-30 23:11:33 +08:00
Kevin Hester
2b74260e2b
only show time on OLED if we have a valid UTC clock
2021-03-20 10:22:06 +08:00
Vadim Furman
d93d5d2e37
Revert clock update for Net quality clocks
2021-03-19 17:21:08 -07:00
Vadim Furman
c62863b1dc
Merge from origin
2021-03-14 19:42:57 -07:00
Vadim Furman
98d878cdfe
Port to lora_isp4520 board
2021-03-14 19:00:20 -07:00
Kevin Hester
217bd934d7
fix GPS fixme wrt deletion
2021-03-10 15:21:54 +08:00
Kevin Hester
4faff3ec6f
cope with bogus NMEA gps
2021-01-16 11:41:18 +08:00