diff options
author | Denis Yeldandi <dyeldandi@gramant.ru> | 2014-10-04 09:21:47 +0400 |
---|---|---|
committer | Denis Yeldandi <dyeldandi@gramant.ru> | 2014-10-04 09:21:47 +0400 |
commit | 04ceb3c95d6c713dfb4f673d3a4cafa7c27c13ca (patch) | |
tree | 3293476d148112992256f914c8cd4abd3e5e18d2 /src/drivers | |
parent | 83632ec0cecc24ea304853569b3ba92d13c53374 (diff) | |
download | px4-firmware-04ceb3c95d6c713dfb4f673d3a4cafa7c27c13ca.tar.gz px4-firmware-04ceb3c95d6c713dfb4f673d3a4cafa7c27c13ca.tar.bz2 px4-firmware-04ceb3c95d6c713dfb4f673d3a4cafa7c27c13ca.zip |
Fixed km/h -> knots in POS
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/gps/ashtech.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/gps/ashtech.cpp b/src/drivers/gps/ashtech.cpp index d338ff8e5..69c22ab28 100644 --- a/src/drivers/gps/ashtech.cpp +++ b/src/drivers/gps/ashtech.cpp @@ -293,7 +293,7 @@ int ASHTECH::handle_message(int len){ double track_rad = track_true * m_pi / 180.0; - double velocity_ms = ground_speed / 3.6; + double velocity_ms = ground_speed / 1.9438445; /** knots to m/s */ double velocity_north = velocity_ms * cos(track_rad); double velocity_east = velocity_ms * sin(track_rad); |