aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-05-05 15:40:02 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-05-05 15:40:02 +0200
commit67e3c808d24773c7c4bd4608866de1edb617cb04 (patch)
tree1769dd6e855c65321cc2d8edb5b18e2a3ccbd47b /src
parent60ccbaa8bb59f4d510b74f7599ef60ef45837180 (diff)
downloadpx4-firmware-67e3c808d24773c7c4bd4608866de1edb617cb04.tar.gz
px4-firmware-67e3c808d24773c7c4bd4608866de1edb617cb04.tar.bz2
px4-firmware-67e3c808d24773c7c4bd4608866de1edb617cb04.zip
remove home position valid flag
Diffstat (limited to 'src')
-rw-r--r--src/modules/commander/commander.cpp4
-rw-r--r--src/modules/uORB/topics/home_position.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index 54834cf9b..bc3bdb782 100644
--- a/src/modules/commander/commander.cpp
+++ b/src/modules/commander/commander.cpp
@@ -570,8 +570,6 @@ bool handle_command(struct vehicle_status_s *status, const struct safety_s *safe
warnx("home: lat = %.7f, lon = %.7f, alt = %.2f ", home->lat, home->lon, (double)home->alt);
mavlink_log_info(mavlink_fd, "[cmd] home: %.7f, %.7f, %.2f", home->lat, home->lon, (double)home->alt);
- home->valid = true;
-
/* set reference for map _projection */
map_projection_global_init(home->lat, home->lon, hrt_absolute_time());
@@ -957,7 +955,6 @@ int commander_thread_main(int argc, char *argv[])
home.lat = global_position.lat;
home.lon = global_position.lon;
home.alt = global_position.alt;
- home.valid = true;
warnx("home: lat = %.7f, lon = %.7f, alt = %.2f ", home.lat, home.lon, (double)home.alt);
mavlink_log_info(mavlink_fd, "[cmd] home: %.7f, %.7f, %.2f", home.lat, home.lon, (double)home.alt);
@@ -1347,7 +1344,6 @@ int commander_thread_main(int argc, char *argv[])
home.lat = global_position.lat;
home.lon = global_position.lon;
home.alt = global_position.alt;
- home.valid = true;
warnx("home: lat = %.7f, lon = %.7f, alt = %.2f ", home.lat, home.lon, (double)home.alt);
mavlink_log_info(mavlink_fd, "[cmd] home: %.7f, %.7f, %.2f", home.lat, home.lon, (double)home.alt);
diff --git a/src/modules/uORB/topics/home_position.h b/src/modules/uORB/topics/home_position.h
index 73c8dc50d..08d11abae 100644
--- a/src/modules/uORB/topics/home_position.h
+++ b/src/modules/uORB/topics/home_position.h
@@ -63,7 +63,6 @@ struct home_position_s
double lat; /**< Latitude in degrees */
double lon; /**< Longitude in degrees */
float alt; /**< Altitude in meters */
- bool valid; /**< True if home position is valid */
};
/**