fix displayInstrumentPanel pitch/roll incorrect references

This commit is contained in:
2026-06-29 20:54:32 -05:00
parent 996c49f5a3
commit 485c2eac37

View File

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