Skip to content

Commit

Permalink
AP_Scripting:examples - rangefinder_test.lua : Minor Spelling Correction
Browse files Browse the repository at this point in the history
Ratation -> Rotation
  • Loading branch information
nkruzan authored and IamPete1 committed Jan 18, 2023
1 parent c04d0a5 commit 0dc8785
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Scripting/examples/rangefinder_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
return update(), 1000 -- first message may be displayed 1 seconds after start-up

0 comments on commit 0dc8785

Please sign in to comment.