mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 02:17:07 +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