mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-15 01:22:04 +00:00
If we are not supposed to share locations make sure phone doesn't either
This commit is contained in:
parent
23aecbdc38
commit
c0c83ad389
@ -1,4 +1,4 @@
|
|||||||
gps todo - bug 376
|
You probably don't care about this ugly file of personal notes ;-)
|
||||||
|
|
||||||
for taiwan region:
|
for taiwan region:
|
||||||
bin/run.sh --set region 8
|
bin/run.sh --set region 8
|
||||||
@ -6,40 +6,14 @@ bin/run.sh --set region 8
|
|||||||
time only mode
|
time only mode
|
||||||
./bin/run.sh --set gps_operation 3
|
./bin/run.sh --set gps_operation 3
|
||||||
|
|
||||||
increase acquisition time until ublox power management can be improved see 9.3.1
|
|
||||||
|
|
||||||
ublox parsing failure
|
ublox parsing failure
|
||||||
|
|
||||||
record power measurements and update spreadsheet
|
record power measurements and update spreadsheet
|
||||||
|
|
||||||
fix has_gps based on new logic
|
|
||||||
|
|
||||||
make sure we are turning off lora radio in deep sleep
|
make sure we are turning off lora radio in deep sleep
|
||||||
|
|
||||||
don't send locations if the user has forbidden that (lie to phone so phone won't either)
|
|
||||||
|
|
||||||
have loop methods return allowable sleep time (from their perspective)
|
have loop methods return allowable sleep time (from their perspective)
|
||||||
increase main cpu sleep time
|
increase main cpu sleep time
|
||||||
|
|
||||||
add set router mode in python tool - it will also set GPS to stationary
|
|
||||||
make sure location still gets set once per boot and stays marked as valid on the gui
|
|
||||||
send position updates super rarely
|
|
||||||
turn off checking for usb power and forcing always on
|
|
||||||
(which will shrink DARK and NB period to zero and
|
|
||||||
make light_sleep very long)
|
|
||||||
|
|
||||||
warn people about crummy gps antennas - add to faq
|
warn people about crummy gps antennas - add to faq
|
||||||
|
|
||||||
|
|
||||||
gps states
|
|
||||||
|
|
||||||
Active - for gps_attempt_time seconds
|
|
||||||
Sleeping - for (gps_update_rate or sleep forever) seconds
|
|
||||||
ForcedSleep - PowerFSM says we don't want to use GPS right now
|
|
||||||
(no need for sleep forever state)
|
|
||||||
|
|
||||||
gps triggers
|
|
||||||
GPS_TRIG_FORCE_SLEEP - from powerfsm
|
|
||||||
GPS_TRIG_FORCE_WAKE - from powerfsm
|
|
||||||
GPS_SETTINGS - if GPS settings changed, reset params and possibly become active
|
|
||||||
|
|
||||||
|
@ -109,7 +109,11 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case STATE_SEND_MY_INFO:
|
case STATE_SEND_MY_INFO:
|
||||||
myNodeInfo.has_gps = gps && gps->isConnected; // Update with latest GPS connect info
|
// If the user has specified they don't want our node to share its location, make sure to tell the phone
|
||||||
|
// app not to send locations on our behalf.
|
||||||
|
myNodeInfo.has_gps = (radioConfig.preferences.location_share == LocationSharing_LocDisabled)
|
||||||
|
? true
|
||||||
|
: (gps && gps->isConnected); // Update with latest GPS connect info
|
||||||
fromRadioScratch.which_variant = FromRadio_my_info_tag;
|
fromRadioScratch.which_variant = FromRadio_my_info_tag;
|
||||||
fromRadioScratch.variant.my_info = myNodeInfo;
|
fromRadioScratch.variant.my_info = myNodeInfo;
|
||||||
state = STATE_SEND_RADIO;
|
state = STATE_SEND_RADIO;
|
||||||
|
Loading…
Reference in New Issue
Block a user