Skip to content

Commit

Permalink
always using groundspeed for vel_m_s in ubx driver
Browse files Browse the repository at this point in the history
  • Loading branch information
sverling authored and bkueng committed Nov 26, 2021
1 parent 0408160 commit eb0cb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ubx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ GPSDriverUBX::payloadRxDone()
case UBX_MSG_NAV_VELNED:
UBX_TRACE_RXMSG("Rx NAV-VELNED");

_gps_position->vel_m_s = static_cast<float>(_buf.payload_rx_nav_velned.speed) * 1e-2f;
_gps_position->vel_m_s = static_cast<float>(_buf.payload_rx_nav_velned.gSpeed) * 1e-2f;
_gps_position->vel_n_m_s = static_cast<float>(_buf.payload_rx_nav_velned.velN) * 1e-2f; // NED NORTH velocity
_gps_position->vel_e_m_s = static_cast<float>(_buf.payload_rx_nav_velned.velE) * 1e-2f; // NED EAST velocity
_gps_position->vel_d_m_s = static_cast<float>(_buf.payload_rx_nav_velned.velD) * 1e-2f; // NED DOWN velocity
Expand Down

0 comments on commit eb0cb58

Please sign in to comment.