Reading Raw CAN Data from ECU using Lua Script on CubeOrange

Hi CubePilot mates,

I’m quite new to this field, but I’ve run into an uncommon issue related to ECU (raw CAN data) compatibility with the CubeOrange.

My setup:

  • Autopilot: CubeOrange + ADS-B carrier board
  • ECU: Uses a raw CAN protocol

Goal: I want to display ECU data on Mission Planner, under the Messages tab.

Could anyone please advise me on how to set up this structure?
Does Lua scripting support reading and handling raw CAN data directly?

I’m considering using a Lua script because I believe this approach can help avoid conflicts with the core ArduPilot firmware.

Thanks in advance for your guidance

This is my understanding and I can be wrong. but hope it could help.

This is a mission planner topic and not CubeOrange.
You mean by ECU data i guess is your motor control unit or ESC and you are using DroneCAN protocol. To access data for dronecan using LUA scripting; check this example.

To display such data on the message tab, i believe it already exist as you should see esc_status (rpm, voltage, etc). Also, you have UAV CAN page in mission planner that you can access all can nodes and their status.
Anything related to message tab that does not exist, it means you need to edit the mission planner code and not LUA scripting or ArduPilot firmware.