aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/hott
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-12-27 11:07:45 +0100
committerJulian Oes <julian@oes.ch>2013-12-27 11:07:45 +0100
commit32c7aea2a6a0c355d2cae362884e40e4f3573311 (patch)
treea6b2579c283704d5c8fc8782ae99e1ad2958836d /src/drivers/hott
parent677150388f31c380923c17e947df36b7c62425b1 (diff)
downloadpx4-firmware-32c7aea2a6a0c355d2cae362884e40e4f3573311.tar.gz
px4-firmware-32c7aea2a6a0c355d2cae362884e40e4f3573311.tar.bz2
px4-firmware-32c7aea2a6a0c355d2cae362884e40e4f3573311.zip
Home position: use double for lat/lon and float for altitude, set home position to global position instead of GPS position once we have a fix
Diffstat (limited to 'src/drivers/hott')
-rw-r--r--src/drivers/hott/messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/hott/messages.cpp b/src/drivers/hott/messages.cpp
index bb8d45bea..90a744015 100644
--- a/src/drivers/hott/messages.cpp
+++ b/src/drivers/hott/messages.cpp
@@ -295,8 +295,8 @@ build_gps_response(uint8_t *buffer, size_t *size)
memset(&home, 0, sizeof(home));
orb_copy(ORB_ID(home_position), _home_sub, &home);
- _home_lat = ((double)(home.lat))*1e-7d;
- _home_lon = ((double)(home.lon))*1e-7d;
+ _home_lat = home.lat;
+ _home_lon = home.lon;
_home_position_set = true;
}