mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-21 20:44:47 +00:00
Merge branch 'master' into tft-gui-work
This commit is contained in:
commit
b90b37d032
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#define PI 3.1415926535897932384626433832795
|
#define PI 3.1415926535897932384626433832795
|
||||||
#define OLC_CODE_LEN 11
|
#define OLC_CODE_LEN 11
|
||||||
#define DEG_CONVERT 180 / PI
|
#define DEG_CONVERT (180 / PI)
|
||||||
|
|
||||||
// Helper functions
|
// Helper functions
|
||||||
// Raises a number to an exponent, handling negative exponents.
|
// Raises a number to an exponent, handling negative exponents.
|
||||||
|
@ -113,7 +113,7 @@ void RangeTestModuleRadio::sendPayload(NodeNum dest, bool wantReplies)
|
|||||||
meshtastic_MeshPacket *p = allocDataPacket();
|
meshtastic_MeshPacket *p = allocDataPacket();
|
||||||
p->to = dest;
|
p->to = dest;
|
||||||
p->decoded.want_response = wantReplies;
|
p->decoded.want_response = wantReplies;
|
||||||
|
p->hop_limit = 0;
|
||||||
p->want_ack = true;
|
p->want_ack = true;
|
||||||
|
|
||||||
packetSequence++;
|
packetSequence++;
|
||||||
@ -295,4 +295,4 @@ bool RangeTestModuleRadio::appendFile(const meshtastic_MeshPacket &mp)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -655,6 +655,9 @@ std::string MQTT::meshPacketToJson(meshtastic_MeshPacket *mp)
|
|||||||
if ((int)decoded->VDOP) {
|
if ((int)decoded->VDOP) {
|
||||||
msgPayload["VDOP"] = new JSONValue((int)decoded->VDOP);
|
msgPayload["VDOP"] = new JSONValue((int)decoded->VDOP);
|
||||||
}
|
}
|
||||||
|
if ((int)decoded->precision_bits) {
|
||||||
|
msgPayload["precision_bits"] = new JSONValue((int)decoded->precision_bits);
|
||||||
|
}
|
||||||
jsonObj["payload"] = new JSONValue(msgPayload);
|
jsonObj["payload"] = new JSONValue(msgPayload);
|
||||||
} else {
|
} else {
|
||||||
LOG_ERROR("Error decoding protobuf for position message!\n");
|
LOG_ERROR("Error decoding protobuf for position message!\n");
|
||||||
@ -808,6 +811,8 @@ std::string MQTT::meshPacketToJson(meshtastic_MeshPacket *mp)
|
|||||||
jsonObj["rssi"] = new JSONValue((int)mp->rx_rssi);
|
jsonObj["rssi"] = new JSONValue((int)mp->rx_rssi);
|
||||||
if (mp->rx_snr != 0)
|
if (mp->rx_snr != 0)
|
||||||
jsonObj["snr"] = new JSONValue((float)mp->rx_snr);
|
jsonObj["snr"] = new JSONValue((float)mp->rx_snr);
|
||||||
|
if (mp->hop_start != 0 && mp->hop_limit <= mp->hop_start)
|
||||||
|
jsonObj["hops_away"] = new JSONValue((uint)(mp->hop_start - mp->hop_limit));
|
||||||
|
|
||||||
// serialize and write it to the stream
|
// serialize and write it to the stream
|
||||||
JSONValue *value = new JSONValue(jsonObj);
|
JSONValue *value = new JSONValue(jsonObj);
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#define LED_PIN 18 // LED
|
#define LED_PIN 18 // LED
|
||||||
#define LED_INVERTED 1
|
#define LED_INVERTED 1
|
||||||
|
|
||||||
#define HAS_SCREEN 0
|
#define HAS_SCREEN 1
|
||||||
#define HAS_GPS 0
|
#define HAS_GPS 0
|
||||||
#undef GPS_RX_PIN
|
#undef GPS_RX_PIN
|
||||||
#undef GPS_TX_PIN
|
#undef GPS_TX_PIN
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[VERSION]
|
[VERSION]
|
||||||
major = 2
|
major = 2
|
||||||
minor = 2
|
minor = 3
|
||||||
build = 25
|
build = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user