Commit 595c469c authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #3780 from DonLakeFlyer/CoordFix

Coord fix
parents 6920c117 e8f14283
...@@ -316,8 +316,8 @@ void PX4FirmwarePlugin::guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoord ...@@ -316,8 +316,8 @@ void PX4FirmwarePlugin::guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoord
cmd.param2 = MAV_DO_REPOSITION_FLAGS_CHANGE_MODE; cmd.param2 = MAV_DO_REPOSITION_FLAGS_CHANGE_MODE;
cmd.param3 = 0.0f; cmd.param3 = 0.0f;
cmd.param4 = NAN; cmd.param4 = NAN;
cmd.param5 = gotoCoord.latitude() * 1e7; cmd.param5 = gotoCoord.latitude();
cmd.param6 = gotoCoord.longitude() * 1e7; cmd.param6 = gotoCoord.longitude();
cmd.param7 = vehicle->altitudeAMSL()->rawValue().toDouble(); cmd.param7 = vehicle->altitudeAMSL()->rawValue().toDouble();
cmd.target_system = vehicle->id(); cmd.target_system = vehicle->id();
cmd.target_component = vehicle->defaultComponentId(); cmd.target_component = vehicle->defaultComponentId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment