AP_Scripting: djirs2 driver minor comment fix

This commit is contained in:
Randy Mackay 2023-02-20 09:28:36 +09:00 committed by Andrew Tridgell
parent 3cca401af8
commit 4918bb4705

View File

@ -438,7 +438,7 @@ function send_target_angles(roll_angle_deg, pitch_angle_deg, yaw_angle_deg, time
yaw_angle_deg = yaw_angle_deg or 0
time_sec = time_sec or 2
-- ensure angles are integers. invert roll direction
-- ensure angles are integers
roll_angle_deg = -math.floor(roll_angle_deg + 0.5)
pitch_angle_deg = math.floor(pitch_angle_deg + 0.5)
yaw_angle_deg = math.floor(yaw_angle_deg + 0.5)