mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 02:40:35 +08:00
fix wrong variable name
This commit is contained in:
@@ -1126,8 +1126,8 @@ int commander_thread_main(int argc, char *argv[])
|
||||
|
||||
/* Initialize map projection if gps is valid */
|
||||
if (!map_projection_global_initialized()
|
||||
&& (gps_position.eph < eph_epv_threshold)
|
||||
&& (gps_position.epv < eph_epv_threshold)) {
|
||||
&& (gps_position.eph_m < eph_epv_threshold)
|
||||
&& (gps_position.epv_m < eph_epv_threshold)) {
|
||||
/* set reference for map _projection */
|
||||
map_projection_global_init((double)gps_position.lat * 1.0e-7, (double)gps_position.lon * 1.0e-7, hrt_absolute_time());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user