mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 03:09:59 +00:00
Change where the location information is taken from.
This commit is contained in:
parent
d678c48884
commit
4ee01acb40
@ -53,13 +53,13 @@ int32_t RangeTestPlugin::runOnce()
|
|||||||
|
|
||||||
if (radioConfig.preferences.range_test_plugin_sender) {
|
if (radioConfig.preferences.range_test_plugin_sender) {
|
||||||
// If sender
|
// If sender
|
||||||
DEBUG_MSG("Range Test Plugin - Sending heartbeat every %d ms\n",
|
DEBUG_MSG("Range Test Plugin - Sending heartbeat every %d ms\n", (senderHeartbeat));
|
||||||
(senderHeartbeat));
|
|
||||||
|
|
||||||
DEBUG_MSG("gpsStatus->getLatitude() %d\n", gpsStatus->getLatitude());
|
DEBUG_MSG("gpsStatus->getLatitude() %d\n", gpsStatus->getLatitude());
|
||||||
DEBUG_MSG("gpsStatus->getLongitude() %d\n", gpsStatus->getLongitude());
|
DEBUG_MSG("gpsStatus->getLongitude() %d\n", gpsStatus->getLongitude());
|
||||||
DEBUG_MSG("gpsStatus->getHasLock() %d\n", gpsStatus->getHasLock());
|
DEBUG_MSG("gpsStatus->getHasLock() %d\n", gpsStatus->getHasLock());
|
||||||
DEBUG_MSG("gpsStatus->getDOP() %d\n", gpsStatus->getDOP());
|
DEBUG_MSG("gpsStatus->getDOP() %d\n", gpsStatus->getDOP());
|
||||||
|
DEBUG_MSG("gpsStatus->getHasLock() %d\n", gpsStatus->getHasLock());
|
||||||
DEBUG_MSG("pref.fixed_position() %d\n", radioConfig.preferences.fixed_position);
|
DEBUG_MSG("pref.fixed_position() %d\n", radioConfig.preferences.fixed_position);
|
||||||
|
|
||||||
rangeTestPluginRadio->sendPayload();
|
rangeTestPluginRadio->sendPayload();
|
||||||
@ -125,23 +125,27 @@ bool RangeTestPluginRadio::handleReceived(const MeshPacket &mp)
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
|
|
||||||
p.payload.size;
|
|
||||||
gpsStatus->getLatitude();
|
|
||||||
gpsStatus->getLongitude();
|
|
||||||
gpsStatus->getHasLock();
|
|
||||||
gpsStatus->getDOP();
|
|
||||||
mp.rx_snr;
|
|
||||||
mp.hop_limit;
|
|
||||||
mp.decoded.position.latitude_i;
|
|
||||||
mp.decoded.position.longitude_i;
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
NodeInfo *n = nodeDB.getNode(mp.from);
|
||||||
|
|
||||||
DEBUG_MSG("p.payload.bytes \"%s\"\n", p.payload.bytes);
|
DEBUG_MSG("p.payload.bytes \"%s\"\n", p.payload.bytes);
|
||||||
DEBUG_MSG("p.payload.size %d\n", p.payload.size);
|
DEBUG_MSG("p.payload.size %d\n", p.payload.size);
|
||||||
|
DEBUG_MSG("mp.from %d\n", mp.from);
|
||||||
DEBUG_MSG("mp.rx_snr %f\n", mp.rx_snr);
|
DEBUG_MSG("mp.rx_snr %f\n", mp.rx_snr);
|
||||||
DEBUG_MSG("mp.hop_limit %d\n", mp.hop_limit);
|
DEBUG_MSG("mp.hop_limit %d\n", mp.hop_limit);
|
||||||
DEBUG_MSG("mp.decoded.position.latitude_i %d\n", mp.decoded.position.latitude_i);
|
// DEBUG_MSG("mp.decoded.position.latitude_i %d\n", mp.decoded.position.latitude_i);
|
||||||
DEBUG_MSG("mp.decoded.position.longitude_i %d\n", mp.decoded.position.longitude_i);
|
// DEBUG_MSG("mp.decoded.position.longitude_i %d\n", mp.decoded.position.longitude_i);
|
||||||
|
DEBUG_MSG("n->has_position %d\n", n->has_position);
|
||||||
|
DEBUG_MSG("n->position.latitude_i %d\n", n->position.latitude_i);
|
||||||
|
DEBUG_MSG("n->position.longitude_i %d\n", n->position.longitude_i);
|
||||||
|
|
||||||
|
n->user.long_name;
|
||||||
|
n->user.short_name;
|
||||||
|
n->user.macaddr;
|
||||||
|
n->position.battery_level;
|
||||||
|
|
||||||
DEBUG_MSG("gpsStatus->getLatitude() %d\n", gpsStatus->getLatitude());
|
DEBUG_MSG("gpsStatus->getLatitude() %d\n", gpsStatus->getLatitude());
|
||||||
DEBUG_MSG("gpsStatus->getLongitude() %d\n", gpsStatus->getLongitude());
|
DEBUG_MSG("gpsStatus->getLongitude() %d\n", gpsStatus->getLongitude());
|
||||||
DEBUG_MSG("gpsStatus->getHasLock() %d\n", gpsStatus->getHasLock());
|
DEBUG_MSG("gpsStatus->getHasLock() %d\n", gpsStatus->getHasLock());
|
||||||
|
Loading…
Reference in New Issue
Block a user