mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 07:21:36 +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)
|
void Simulator::update_gps(mavlink_hil_gps_t *gps_sim)
|
||||||
{
|
{
|
||||||
RawGPSData gps;
|
RawGPSData gps = {};
|
||||||
gps.lat = gps_sim->lat;
|
gps.lat = gps_sim->lat;
|
||||||
gps.lon = gps_sim->lon;
|
gps.lon = gps_sim->lon;
|
||||||
gps.alt = gps_sim->alt;
|
gps.alt = gps_sim->alt;
|
||||||
|
|||||||
Reference in New Issue
Block a user