Andrew
753a57230d
Fix Meshtastic#80: Increase screen timeout to 5 minutes
2020-04-06 22:53:10 -07:00
geeksville
c22df18e28
fix collision avoidance for transmit - substantially improves lora tx success
2020-04-06 09:39:44 -07:00
geeksville
13ac686c96
minor doc cleanups
2020-04-05 13:58:38 -07:00
geeksville
05a0266fc4
Fix #77 : bluetooth is supposed to be on in DARK state
2020-04-05 13:09:46 -07:00
geeksville
63e1a3f47e
always set time from GPS if we can
2020-04-04 19:16:30 -07:00
geeksville
07a8972aea
NEO-6M gps with empty backup batteries give super invalid times
2020-04-04 18:47:41 -07:00
geeksville
d1cb45aa5d
string typo
2020-04-04 18:46:19 -07:00
geeksville
da74803ffb
begin cleanup on radio abstraction, details below:
...
* to allow changing to new mesh transport
* to allow a different chipset for the radio
* to allow testing on hardware with a SimRadio
* new "bare" build env for a devboard with virtually no hardware
* make buttons optional
2020-03-31 21:56:35 -07:00
geeksville
17de6f9532
fix #73 : allow hw-model to be longer (16 bytes including terminator)
2020-03-30 19:58:06 -07:00
geeksville
1da62e5ba1
oops - we were previously not marking these protobuf structs as valid
2020-03-30 17:02:41 -07:00
geeksville
feb6f2e59e
extra debug output for radio config, and bump up bax handles for BLE
2020-03-30 17:02:09 -07:00
geeksville
7dabad1b70
don't let phones send down fatally invalid RadioConfig records
...
and if a phone did in the past, fixup the garbage we saved in flash
2020-03-30 16:10:11 -07:00
geeksville
81734f75c8
fix review comments (don't let commands queue up if we are missing a display)
2020-03-29 11:13:53 -07:00
geeksville
11d57e721a
fix #68 (@girtsf, pls review - ps: no worries ;-) )
...
// We don't set useDisplay until setup() is called, because some boards have a declaration of this object but the device
// is never found when probing i2c and therefore we don't call setup and never want to do (invalid) accesses to this device.
2020-03-29 11:00:25 -07:00
geeksville
ea250d9cd3
add initial guess at TBEAM 0.7 hardware support
2020-03-28 15:31:22 -07:00
geeksville
be468a2183
add reasonable guesses for TTGO LORA V1 and V2 boards - thanks @sensorsiot
...
for the pinouts
2020-03-28 14:45:33 -07:00
geeksville
cf2aa37635
clean up configuration.h and add support for ttgo-lora-v1 boards
2020-03-27 16:55:19 -07:00
geeksville
d1387be015
Merge remote-tracking branch 'root/master'
...
# Conflicts:
# src/main.cpp
# src/screen.cpp
2020-03-27 14:18:07 -07:00
geeksville
d831beab3d
moving build selection into platformio.ini rather than nasty #defines. thanks to @sensorslot
...
for the pointer to https://github.com/arendst/Tasmota - where I just borrowed heavily ;-)
2020-03-27 14:03:58 -07:00
geeksville
5c4ae6c042
now that axp192 interrups work, no need to poll over i2c. #48
2020-03-27 14:03:58 -07:00
geeksville
a0c97825e8
always use gps.isConnected to check for GPS, it is the only thing
...
guaranteed to be fresh and accurate
2020-03-27 12:32:18 -07:00
geeksville
cc3bac7ea0
Fix AXP192 handling by @spattinson. yay! fix #48
...
Also - now that he fixed that, we can leave PMU interrupts on across sleep
Hopefully the following line will properly credit him in the magic github
universe...
Co-authored-by: spattinson <spattinson@users.noreply.github.com>
2020-03-27 12:29:51 -07:00
Girts Folkmanis
54cd082bfe
fix #49 : make debug screen show real data
...
* Break out debug screen to a separate class and make it thread-safe.
* Break out power state to a separate class.
* Show battery voltage, charging & USB status on debug screen.
* Show GPS lock / no lock
* Fix an off-by-one that I introduced earlier in `drawRows`.
2020-03-26 22:17:47 -07:00
geeksville
a579bbcb50
heltec style devices were not automatically setting their time from the mesh
...
due to a bug in the init of has_gps. Now that we probe for gps we should
default has_gps to false until we hear from it
2020-03-25 13:36:54 -07:00
geeksville
12e67d3b30
add some debug output
2020-03-25 13:35:49 -07:00
geeksville
50d724780a
make user presses ask other nodes for their latest status
...
see related bug
https://github.com/meshtastic/Meshtastic-esp32/issues/59
2020-03-25 13:09:12 -07:00
geeksville
3443e60718
never loop waiting on hardware without some sort of timeout ;-)
...
related to https://github.com/meshtastic/Meshtastic-esp32/issues/53
2020-03-25 12:25:46 -07:00
geeksville
65128a04c9
my new watchdog related to the the send tx bug was not quite complete
...
https://github.com/meshtastic/Meshtastic-esp32/issues/53
2020-03-25 11:45:18 -07:00
geeksville
b4b8abe6ec
omg I was not setting the correct flag to tell phone we had gps
2020-03-24 15:20:24 -07:00
geeksville
d647be73df
oops nasty bug probably responsible for ble mutex seeming bugs #33
...
Was calling the wrong superclass method and therfore not properly
populating radio
2020-03-24 15:16:32 -07:00
geeksville
34ead2d68e
add support for reporting device errors up through the phone to analytics
...
related to https://github.com/meshtastic/Meshtastic-esp32/issues/53
2020-03-24 13:33:24 -07:00
geeksville
3f1161b68b
bug #53 - report the error on console and fixup (will add analytics in
...
a separate call)
2020-03-24 13:04:28 -07:00
Kevin Hester
1f83f7d9df
Merge branch 'master' into fix-upside-down-screen
2020-03-24 10:55:56 -07:00
Girts Folkmanis
dee3e530de
fix #52 : bluetooth not pairing
...
Silly type error on my part - PIN was always truncated to lower 8 bits.
😬
Tested: Pairing now works from both nRF Connect and phone.
2020-03-22 19:18:49 -07:00
Girts Folkmanis
3e44c2c3e1
screen.cpp: flip the display 180
2020-03-19 20:15:51 -07:00
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