From 407fb6d6a2a58078fadcc4989621753d17abef32 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 7 Jun 2023 09:01:54 -0500 Subject: [PATCH] Move to deviceonly --- meshtastic/deviceonly.proto | 32 +++++++++++++++++++++++++++++++- meshtastic/mesh.proto | 30 ------------------------------ 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/meshtastic/deviceonly.proto b/meshtastic/deviceonly.proto index 4655e04..871894f 100644 --- a/meshtastic/deviceonly.proto +++ b/meshtastic/deviceonly.proto @@ -79,6 +79,36 @@ message DeviceState { repeated NodeRemoteHardwarePin node_remote_hardware_pins = 13; } +/* + * Position with static location information only for NodeDBLite + */ +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; +} + /* * The on-disk saved channels */ @@ -175,4 +205,4 @@ message NodeRemoteHardwarePin { * The the available gpio pin for usage with RemoteHardware module */ RemoteHardwarePin pin = 2; -} +} \ No newline at end of file diff --git a/meshtastic/mesh.proto b/meshtastic/mesh.proto index 17f6d66..12af211 100644 --- a/meshtastic/mesh.proto +++ b/meshtastic/mesh.proto @@ -15,36 +15,6 @@ 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 */