From 110323e24c24f680016a10c599e2dfbbe9d5aa6d Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 7 Jun 2023 08:57:01 -0500 Subject: [PATCH] PositionLite draft --- meshtastic/mesh.proto | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 12af211..17f6d66 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -15,6 +15,36 @@ option java_outer_classname = "MeshProtos"; option java_package = "com.geeksville.mesh"; option swift_prefix = ""; +/* + * Position with static location information only + */ +message PositionLite { + /* + * The new preferred location encoding, multiply by 1e-7 to get degrees + * in floating point + */ + sfixed32 latitude_i = 1; + + /* + * TODO: REPLACE + */ + sfixed32 longitude_i = 2; + + /* + * In meters above MSL (but see issue #359) + */ + int32 altitude = 3; + + /* + * This is usually not sent over the mesh (to save space), but it is sent + * from the phone so that the local device can set its RTC If it is sent over + * the mesh (because there are devices on the mesh without GPS), it will only + * be sent by devices which has a hardware GPS clock. + * seconds since 1970 + */ + fixed32 time = 4; +} + /* * a gps position */