copter_client: Increase position answer accuracy

This commit is contained in:
Arthur Golubtsov
2019-09-20 05:25:13 +01:00
parent 2c7f28d0dc
commit 38478a41f0

View File

@@ -177,7 +177,7 @@ def _response_cal_status():
@messaging.request_callback("position")
def _response_position():
telem = FlightLib.get_telemetry(client.active_client.FRAME_ID)
return "{:.1f} {:.1f} {:.1f} {:.1f} {}".format(
return "{:.2f} {:.2f} {:.2f} {:.1f} {}".format(
telem.x, telem.y, telem.z, math.degrees(telem.yaw), client.active_client.FRAME_ID)
@messaging.request_callback("calibrate_gyro")