Skip to content

Commit

Permalink
Beacon: LUA update
Browse files Browse the repository at this point in the history
  • Loading branch information
lthall committed Jun 11, 2024
1 parent ad96145 commit b8c24b3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libraries/AP_Scripting/examples/Led_Manual.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ local color = 1
function update()
color = 1
if ahrs:healthy() then
gcs:send_text(0, "healthy")
color = 4
if arming:pre_arm_checks() then
gcs:send_text(0, "pre_arm_checks")
color = 5
--gcs:send_text(0, "healthy")
if gps:num_sensors() == 2 and gps:status(0) >= gps.GPS_OK_FIX_3D and gps:status(1) >= gps.GPS_OK_FIX_3D_RTK_FLOAT then
--gcs:send_text(0, "GPS Lock")
color = 2
else
--gcs:send_text(0, "Waiting for GPS Lock")
color = 3
end
end
if color == 0 then
Expand Down

0 comments on commit b8c24b3

Please sign in to comment.