File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments