I’m asking for help from the community in writing a script. I’m stuck and can’t figure out how to do it, as I’m a beginner in programming. I have a device that feeds data to UART 2 (of Cube+) 100 times per second. This is a sequence of characters (numbers, it doesn’t matter). I can output them in the form of a message to the MissionPlanner screen, but I need to transmit them to the ground station via the Mavlink protocol. I slightly changed the example from GitHub to output the message, but I can’t figure out how to transmit it via Mavlink. Please help with advice, I’ve been struggling with this task for a week. The code that I currently have working just to output information to the screen is as follows:
– Lua script to write and read from a serial
As I understand, the value is not displayed on the screen, but can it be intercepted? And how can it be processed?
So, I don’t need to combine my data with Mavlink then?