geeksville
32ac5ac9ae
reformat everything
...
using @girtsf clang-format prefs settings. This should allow us to turn
on auto format in our editors without causing spurious file changes.
2020-03-18 19:15:51 -07:00
geeksville
534691f0c2
Merge remote-tracking branch 'root/master'
...
# Conflicts:
# src/main.cpp
# src/screen.cpp
# src/screen.h
2020-03-18 18:44:12 -07:00
geeksville
c8b95f7691
oops - I broke compass display with my gps changes and didn't notice till
...
testing with two gps equipped devices. fixed.
2020-03-18 18:34:22 -07:00
Girts Folkmanis
daf8594b99
Screen cleanups and refactoring
...
Work towards separating out how Screen interacts with other stuff.
* `Screen` should now be thread-safe. All commands to it are put in a
queue and handled in `doTask` from the `loop()` task.
* Break dependency from `BluetoothUtil` to `Screen` by changing the
pairing request into a callback.
* All accesses to screen now happen through the class.
* Fix `drawRows` so that the text scrolls along with frame animations.
* Remove example code that wasn't used.
2020-03-18 18:11:35 -07:00
Girts Folkmanis
5b54fd6359
screen.cpp: reformat with clang-format
2020-03-18 17:16:19 -07:00
geeksville
53765298e1
add a real BOOT state, to avoid glitch from redrawing bootscreen twice
...
also its the right thing to do ;-)
2020-03-18 15:00:17 -07:00
geeksville
0d94458c4e
bump preferences #
2020-03-18 14:59:30 -07:00
geeksville
5e55695862
fix build warning
2020-03-18 14:51:54 -07:00
geeksville
dbbb62f63e
fix press to properly force any node we are watching to send us a new
...
position report
2020-03-18 13:51:32 -07:00
geeksville
79ce7d929c
send dynamic probed GPS status to the phone
2020-03-18 13:29:22 -07:00
geeksville
33437b5246
oops - I accidentally shadowed a variable I didn't want to shadow ;-)
2020-03-18 09:37:38 -07:00
geeksville
f4bacb9d87
some tbeams have occasional crap sitting in their gps rx buffer at boot?
2020-03-18 09:29:20 -07:00
geeksville
0ac218b06d
allow gpses which only have the RX pin connected to also work.
...
(and because I'm lazy, let the autoreformat rule work on this file)
2020-03-18 09:21:28 -07:00
geeksville
2134b4db9b
fix #40 force an extra redraw for the bootscreen,
...
some clones drop the first draw cmd
2020-03-17 16:36:48 -07:00
geeksville
36bee8fa53
Merge remote-tracking branch 'root/master'
2020-03-16 09:30:24 -07:00
Girts Folkmanis
41c95eaff7
fix build: add missing include to screen.cpp
2020-03-16 09:26:40 -07:00
geeksville
ca8a25f585
Merge remote-tracking branch 'root/master'
2020-03-16 09:03:21 -07:00
Kevin Hester
51a8700391
Merge pull request #35 from girtsf/underp-lock-paths
...
underp include paths in lock.h
2020-03-16 09:02:54 -07:00
Girts Folkmanis
7a4a1af332
TypedQueue: make functions return bools instead of BaseType_t
...
Minor cleanup to hide away some FreeRTOS bits.
Note: I believe src/CustomRF95.cpp:62 had a bug where it had the
condition inverted.
2020-03-15 19:29:04 -07:00
Girts Folkmanis
90ecdf229e
add locks to PeriodicTask
2020-03-15 19:29:00 -07:00
geeksville
24ac907780
auto generate channel numbers from name
...
NOTE: All radios on a channel will need to be updated to this release
before they can talk together again.
2020-03-15 17:51:57 -07:00
geeksville
5037fb830e
fix build (and autoformat in visual studio code)
2020-03-15 17:50:48 -07:00
Girts Folkmanis
79f1346359
underp include paths in lock.h
...
Had the casing wrong, but could get away with it on a mac.
2020-03-15 17:43:42 -07:00
geeksville
30a431788d
we now do bidirectional comms to GPS at startup, so we can always trust isConnected
2020-03-15 16:57:21 -07:00
geeksville
d0b8adab75
In my work for #11 I accidentially created a serious bug on Heltec...
...
devices. It caused bogus i2c transactions when device would go to sleep.
Fixed now, also, I now treat GPS usage uniformly between TBEAM and HELTEC
we always probe for and use the GPS if we find it.
Which means for the extra nerds
(someone requested this, I'm sorry - I don't remember who) you can now
optionally attach an external GPS to HELTECs if you want. The pins are:
#define GPS_RX_PIN 34
#define GPS_TX_PIN 12
(@girtsf, sorry about including formatting changes in this PR, apparently
I had my IDE set to not autoreformat until just now
2020-03-15 16:57:21 -07:00
geeksville
74f7b7b622
print extra info the next time this error occurs
2020-03-15 16:57:21 -07:00
Girts Folkmanis
2874b22d6c
add a Lock, LockGuard and printThreadInfo
...
* `Lock`: trivial wrapper for FreeRTOS binary semaphores
* `LockGuard`: RAII wrapper for using `Lock`
* `printThreadInfo`: helper for showing which core/FreeRTOS task we are
running under
2020-03-15 16:52:19 -07:00
Girts Folkmanis
b5201f928b
fix the build: remove includes for TinyGPS that's not longer used or in deps
2020-03-15 13:27:00 -07:00
geeksville
0d62a2be85
release 0.1.6
2020-03-14 18:48:15 -07:00
geeksville
9c971d3686
Finally - new sexy ultra low power/low latency GPS code is in for TBEAM
2020-03-14 18:45:24 -07:00
geeksville
3c1357b732
ublox is better but still not perfect
2020-03-14 16:31:12 -07:00
geeksville
acd5e5d29d
use power save mode on gps
2020-03-14 13:33:53 -07:00
geeksville
64109b25f2
Switch to native ublox api for GPS position and time
2020-03-14 12:46:24 -07:00
geeksville
e93bc76ac9
Merge branch 'master' into gps-sleep-mode
2020-03-13 22:45:40 -07:00
geeksville
1107c6d23d
Fix serious bug: button presses were not waking from light-sleep on TBEAM
...
Root cause seems to be the axp192 interrupt, which on some boards fires
during sleep. I'm not sure why, but we don't need this yet, so leaving
masked during sleep.
2020-03-13 22:42:43 -07:00
geeksville
35cf8a4859
power debugging
2020-03-13 22:38:58 -07:00
geeksville
76f21dfd6e
wip
2020-03-13 22:34:44 -07:00
geeksville
9bbd658b9d
begin testing native ublox api
2020-03-13 20:30:48 -07:00
geeksville
4999da0824
Merge branch 'dev' into gps-sleep-mode
...
# Conflicts:
# docs/software/TODO.md
# platformio.ini
2020-03-13 18:48:38 -07:00
geeksville
a783341df1
begin adding temporary support for both NEMA and UBLOX gpses
2020-03-13 18:44:14 -07:00
astro-arphid
91227b25df
#13 - add support for 433MHz Heltec boards
2020-03-12 06:05:11 +00:00
geeksville
9995d2a7ab
oops copypasta error fix #19 . Thanks @iveskins!
2020-03-10 19:33:16 -07:00
geeksville
f87cb00940
show reason for last reset
2020-03-08 14:05:12 -07:00
geeksville
011864a2d3
Fix #15 Force all devices to update preferences
2020-03-08 11:02:58 -07:00
geeksville
ffe8bf2be6
Refactor to make some real design docs
2020-03-05 18:39:24 -08:00
geeksville
c66e24aa4d
most users are not using the phone app now, don't enter SDS state because of no phone comms
2020-03-04 18:59:10 -08:00
geeksville
951f5d11d5
fix text message display when new text arrives
...
The problem was we were pulsing the display power briefly down while
reentering the ON state (because the ON states exit rule turned it off).
Instead we now just turn off the screen on entry to DARK or LS states
2020-03-04 16:46:57 -08:00
geeksville
2ce95ed2ce
fix typo in SDS sleep time
2020-03-04 16:10:48 -08:00
geeksville
d1b7b6c5c5
oops - I was previously stopping bluetooth before stopping the mesh bluetooth service
...
which was bad bad
2020-03-04 16:10:36 -08:00
geeksville
425c570757
don't show fake GPS level on devices without one #4
2020-03-04 10:51:29 -08:00