I am currently working on a project but I have encountered a problem. I want to connect a sensor to an APM 2.5 or CUAV v5+ using the UART port and read the data sent from the sensor. Then, I want to send this data to Mission Planner software and display it there. Furthermore, I want to visualize this data in real-time on a graph.
like this
sensor—Uart—>apm2.5—>mission planner
Now, I’m not sure which methods and codes to use, and I don’t know which parts of the ArduPilot code and which parts of the Mission Planner code to modify.
Unless you actually need robustness of Cube system (if so you shouldn’t have considered APM2.x in the first place) you can use any H7 board, for example Matek H7 that will be significantly cheaper though it requires soldering.
Use Lua to read the data from the sensor, log it and send it to GCS using send named float.
Thanks for your reply
But I’m not sure which methods and codes to use, and I don’t know which parts of the ArduPilot code and which parts of the Mission Planner code to modify
Where can I run Lua script? What part of the framework do I need to modify? I am very beginner in this work.