imu and gps allright

This commit is contained in:
2025-07-02 00:06:16 +08:00
parent a6ebf4b8a5
commit 0361cd17af
15 changed files with 1293 additions and 1202 deletions

View File

@@ -349,13 +349,14 @@ void gps_thread_entry(ULONG thread_input)
tx_event_flags_set(&system_events, EVENT_LOCATION_UPDATED, TX_OR);
msg.lat = current_location.lat;
msg.lon = current_location.lon;
// msg.lat = current_location.lat;
// msg.lon = current_location.lon;
// snprintf(msg, sizeof(msg), "#{\"lat\":%.6f,\"lon\":%.6f,\"angle\":%.2f}\n",
// current_location.lat,
// current_location.lon,
// current_location.angle);
tx_queue_send(&ble_tx_queue, &msg, TX_WAIT_FOREVER);
BleMessage msg = current_location;
tx_queue_send(&ble_tx_queue, &msg, TX_WAIT_FOREVER);
}
}