first fix for angles not updating

This commit is contained in:
2026-06-25 18:24:23 -05:00
parent c3e9454241
commit da937b7771

View File

@@ -717,9 +717,9 @@ function displayInstrumentPanel(monitor, sensorData)
if next(sensorData) ~= nil then
if sensorData then
m.setCursorPos(1, 3)
m.write("Pitch: " .. string.format("%.2f", SensorData.Gimbal.Angles.xAngle or 0))
m.write("Pitch: " .. string.format("%.2f", SensorData.Gimbal.Angles[0] or 0))
m.setCursorPos(1, 4)
m.write("Roll: " .. string.format("%.2f", SensorData.Gimbal.Angles.zAngle or 0))
m.write("Roll: " .. string.format("%.2f", SensorData.Gimbal.Angles[1] or 0))
m.setCursorPos(1, 5)
m.write("Yaw: " .. string.format("%.2f", SensorData.NavTable.Heading or 0))
m.setCursorPos(1, 6)