Commit 4eec866a authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #3781 from DonLakeFlyer/CoordFix

Change to match mavlink spec
parents 2c91bd95 e8f14283
......@@ -316,8 +316,8 @@ void PX4FirmwarePlugin::guidedModeGotoLocation(Vehicle* vehicle, const QGeoCoord
cmd.param2 = MAV_DO_REPOSITION_FLAGS_CHANGE_MODE;
cmd.param3 = 0.0f;
cmd.param4 = NAN;
cmd.param5 = gotoCoord.latitude() * 1e7;
cmd.param6 = gotoCoord.longitude() * 1e7;
cmd.param5 = gotoCoord.latitude();
cmd.param6 = gotoCoord.longitude();
cmd.param7 = vehicle->altitudeAMSL()->rawValue().toDouble();
cmd.target_system = vehicle->id();
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