Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic usage mode selection for GPS Position. #620

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions meshtastic/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,44 @@ message Config {
NOT_PRESENT = 2;
}


enum GpsDynamicMode {
/*
* For pedestrian use and hiking (default)
*/
PEDESTRIAN = 0;

/*
* For cycling.
*/
BIKE = 1;

/*
* For use in a moving car.
*/
CAR = 2;

/*
* For use in a boat at sea level.
*/
BOAT = 3;

/*
* For use in a plane.
*/
PLANE = 4;

/*
* For use in a high-altitude balloon.
*/
BALLOON = 5;

/*
* For fixed-position use of GPS.
*/
STATIONARY = 6;
}

/*
* We should send our position this often (but only if it has changed significantly)
* Defaults to 15 minutes
Expand Down Expand Up @@ -372,6 +410,11 @@ message Config {
* Set where GPS is enabled, disabled, or not present
*/
GpsMode gps_mode = 13;

/*
* Set what type of activity is expected for the GPS Usage.
*/
GpsMode gps_dynamic_mode = 14;
}

/*
Expand Down
Loading