AP_Scripting:examples - rangefinder_test.lua : Minor Spelling Correction

Ratation -> Rotation
This commit is contained in:
Nicholas (Nick) Kruzan 2023-01-17 18:04:19 -06:00 committed by Peter Hall
parent c04d0a54e8
commit 0dc878564f
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ function info(rotation)
local offset = rangefinder:get_pos_offset_orient(rotation)
local distance_cm = rangefinder:distance_cm_orient(rotation)
gcs:send_text(0, string.format("Ratation %d %.0f cm range %d - %d offset %.0f %.0f %.0f ground clearance %.0f", rotation, distance_cm, distance_min, distance_max, offset:x(), offset:y(), offset:z(), ground_clearance))
gcs:send_text(0, string.format("Rotation %d %.0f cm range %d - %d offset %.0f %.0f %.0f ground clearance %.0f", rotation, distance_cm, distance_min, distance_max, offset:x(), offset:y(), offset:z(), ground_clearance))
end
return update(), 1000 -- first message may be displayed 1 seconds after start-up