You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @MikeS96 and everyone. Would you mind helpping me, please?
I was trying to build the Autonomous landing of a UAV on Ubuntu 20.04, which encountered below error.
I went through Installation and environment configuration and everything was fine. However, when I executed make px4_sitl gazebo in PX4-Autopilot directory, building was stopped by this error.
error: ‘struct sensor_gps_s’ has no member named ‘latitude_deg’
error: ‘struct sensor_gps_s’ has no member named ‘longitude_deg’
error: no matching function for call to ‘GPSDriverUBX::GPSDriverUBX(GPSHelper::Interface&, int (*)(GPSCallbackType, void*, int, void*), GPS*, sensor_gps_s*, satellite_info_s*&, int32_t&, float&, GPSDriverUBX::UBXMode&)’
Best Regards,
The text was updated successfully, but these errors were encountered:
Comor543
changed the title
Building error: struct sensor_gps_s’ has no member named ‘latitude_deg
Building error: error: ‘struct sensor_gps_s’ has no member named ‘latitude_deg’
Aug 13, 2024
Hi @Comor543, this is very likely and installation issue. Potentially you did not checkout the right commit when installing the PX4 SITL. I'd recommend try carefully the installation again and making extra sure you run:
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
cd PX4-Autopilot
git checkout cab477d71550558756509ad3a6ffcbebbbbf82b1
Hello @MikeS96 and everyone. Would you mind helpping me, please?
I was trying to build the Autonomous landing of a UAV on Ubuntu 20.04, which encountered below error.
I went through Installation and environment configuration and everything was fine. However, when I executed
make px4_sitl gazebo
inPX4-Autopilot
directory, building was stopped by this error.I think these 3 are the errors
error: ‘struct sensor_gps_s’ has no member named ‘latitude_deg’
error: ‘struct sensor_gps_s’ has no member named ‘longitude_deg’
error: no matching function for call to ‘GPSDriverUBX::GPSDriverUBX(GPSHelper::Interface&, int (*)(GPSCallbackType, void*, int, void*), GPS*, sensor_gps_s*, satellite_info_s*&, int32_t&, float&, GPSDriverUBX::UBXMode&)’
Best Regards,
The text was updated successfully, but these errors were encountered: