Skip to content

Commit 43be7a8

Browse files
committed
crsf, bug, crsf GPsd sensor was wrong (thx to Osvetitel)
1 parent d3db1a5 commit 43be7a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mLRS/CommonTx/crsf_interface_tx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ void tTxCrsf::SendTelemetryFrame(void)
580580

581581
//-------------------------------------------------------
582582
// CRSF Telemetry Mavlink Handling
583-
// we have to kinds to consider:
583+
// we have two kinds to consider:
584584
// - native CRSF telemetry frames:
585585
// these are filled from MAVLink messages by the tTxCrsf class
586586
// - passthrough packets which are packed into CRSF passthrough telemetry frames:
@@ -674,7 +674,7 @@ void tTxCrsf::handle_mavlink_msg_global_position_int(fmav_global_position_int_t*
674674

675675
// take the ground speed from VFR_HUD
676676
if (vfr_hud_groundspd_mps != NAN) {
677-
gps.groundspeed = CRSF_REV_U16(100.0f * vfr_hud_groundspd_mps / 3.6f);
677+
gps.groundspeed = CRSF_REV_U16(10.0f * vfr_hud_groundspd_mps * 3.6f); // TBS docs say 'km/h / 100' but seems to be 'km/h / 10'
678678
} else {
679679
gps.groundspeed = 0;
680680
}

0 commit comments

Comments
 (0)