Skip to content

Commit

Permalink
Merge branch 'master' into tft-gui-work
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Feb 22, 2024
2 parents 4a34c4f + 880afb9 commit d14151e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion protobufs
6 changes: 3 additions & 3 deletions src/mesh/generated/meshtastic/atak.pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ typedef struct _meshtastic_PLI {
in floating point */
int32_t longitude_i;
/* Altitude (ATAK prefers HAE) */
uint32_t altitude;
int32_t altitude;
/* Speed */
uint32_t speed;
/* Course in degrees */
Expand Down Expand Up @@ -238,7 +238,7 @@ X(a, STATIC, SINGULAR, STRING, device_callsign, 2)
#define meshtastic_PLI_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, SFIXED32, latitude_i, 1) \
X(a, STATIC, SINGULAR, SFIXED32, longitude_i, 2) \
X(a, STATIC, SINGULAR, UINT32, altitude, 3) \
X(a, STATIC, SINGULAR, INT32, altitude, 3) \
X(a, STATIC, SINGULAR, UINT32, speed, 4) \
X(a, STATIC, SINGULAR, UINT32, course, 5)
#define meshtastic_PLI_CALLBACK NULL
Expand All @@ -263,7 +263,7 @@ extern const pb_msgdesc_t meshtastic_PLI_msg;
#define meshtastic_Contact_size 242
#define meshtastic_GeoChat_size 323
#define meshtastic_Group_size 4
#define meshtastic_PLI_size 26
#define meshtastic_PLI_size 31
#define meshtastic_Status_size 3
#define meshtastic_TAKPacket_size 584

Expand Down
2 changes: 1 addition & 1 deletion src/modules/PositionModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ meshtastic_MeshPacket *PositionModule::allocAtakPli()
{.pli = {
.latitude_i = localPosition.latitude_i,
.longitude_i = localPosition.longitude_i,
.altitude = localPosition.altitude_hae > 0 ? localPosition.altitude_hae : 0,
.altitude = localPosition.altitude_hae,
.speed = localPosition.ground_speed,
.course = static_cast<uint16_t>(localPosition.ground_track),
}}};
Expand Down

0 comments on commit d14151e

Please sign in to comment.