Skip to content

Commit

Permalink
Merge pull request #545 from ianmcorvidae/optional-properties
Browse files Browse the repository at this point in the history
Optional properties
  • Loading branch information
thebentern authored Aug 8, 2024
2 parents 19bd2d0 + 020140c commit bd9b1ab
Show file tree
Hide file tree
Showing 3 changed files with 423 additions and 422 deletions.
18 changes: 9 additions & 9 deletions meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ message Position {
* The new preferred location encoding, multiply by 1e-7 to get degrees
* in floating point
*/
sfixed32 latitude_i = 1;
optional sfixed32 latitude_i = 1;

/*
* TODO: REPLACE
*/
sfixed32 longitude_i = 2;
optional sfixed32 longitude_i = 2;

/*
* In meters above MSL (but see issue #359)
*/
int32 altitude = 3;
optional int32 altitude = 3;

/*
* This is usually not sent over the mesh (to save space), but it is sent
Expand Down Expand Up @@ -122,12 +122,12 @@ message Position {
/*
* HAE altitude in meters - can be used instead of MSL altitude
*/
sint32 altitude_hae = 9;
optional sint32 altitude_hae = 9;

/*
* Geoidal separation in meters
*/
sint32 altitude_geoidal_separation = 10;
optional sint32 altitude_geoidal_separation = 10;

/*
* Horizontal, Vertical and Position Dilution of Precision, in 1/100 units
Expand Down Expand Up @@ -163,12 +163,12 @@ message Position {
* - "yaw" indicates a relative rotation about the vertical axis
* TODO: REMOVE/INTEGRATE
*/
uint32 ground_speed = 15;
optional uint32 ground_speed = 15;

/*
* TODO: REPLACE
*/
uint32 ground_track = 16;
optional uint32 ground_track = 16;

/*
* GPS fix quality (from NMEA GxGGA statement or similar)
Expand Down Expand Up @@ -837,12 +837,12 @@ message Waypoint {
/*
* latitude_i
*/
sfixed32 latitude_i = 2;
optional sfixed32 latitude_i = 2;

/*
* longitude_i
*/
sfixed32 longitude_i = 3;
optional sfixed32 longitude_i = 3;

/*
* Time the waypoint is to expire (epoch)
Expand Down
1 change: 1 addition & 0 deletions meshtastic/module_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ message ModuleConfig {
* Works as a sort of status heartbeat for peace of mind
*/
uint32 state_broadcast_secs = 3;

/*
* Send ASCII bell with alert message
* Useful for triggering ext. notification on bell
Expand Down
Loading

0 comments on commit bd9b1ab

Please sign in to comment.