mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 11:07:34 +08:00
Initialize raw GPS data
This commit is contained in:
@@ -260,7 +260,7 @@ void Simulator::update_sensors(mavlink_hil_sensor_t *imu)
|
||||
|
||||
void Simulator::update_gps(mavlink_hil_gps_t *gps_sim)
|
||||
{
|
||||
RawGPSData gps;
|
||||
RawGPSData gps = {};
|
||||
gps.lat = gps_sim->lat;
|
||||
gps.lon = gps_sim->lon;
|
||||
gps.alt = gps_sim->alt;
|
||||
|
||||
Reference in New Issue
Block a user