Commit 72254352 authored by DonLakeFlyer's avatar DonLakeFlyer

Convert to m/s

parent 9e4741db
...@@ -252,6 +252,6 @@ void ArduCopterFirmwarePlugin::missionFlightSpeedInfo(Vehicle* vehicle, double& ...@@ -252,6 +252,6 @@ void ArduCopterFirmwarePlugin::missionFlightSpeedInfo(Vehicle* vehicle, double&
cruiseSpeed = 0; cruiseSpeed = 0;
if (vehicle->parameterManager()->parameterExists(FactSystem::defaultComponentId, hoverSpeedParam)) { if (vehicle->parameterManager()->parameterExists(FactSystem::defaultComponentId, hoverSpeedParam)) {
Fact* speed = vehicle->parameterManager()->getParameter(FactSystem::defaultComponentId, hoverSpeedParam); Fact* speed = vehicle->parameterManager()->getParameter(FactSystem::defaultComponentId, hoverSpeedParam);
hoverSpeed = speed->rawValue().toDouble(); hoverSpeed = speed->rawValue().toDouble() / 100; // cm/s -> m/s
} }
} }
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