Logging additional external data from ESP32 (or Arduino MEGA) to a STM32 FC

Hello. Can some one explain how to log additional external data from Arduino based boards to STM32 FC?
image
I think that i have to create a new log message (Adding a new Log Message — Dev documentation)
But i have no idea how to send data and trigger it via MAVLink

I already did it waith lua. But I want to avoid lua using because of not avery board support it

Look for a Mavlink based device (like AP_Rangefinder_Mavlink) and write your driver based on that.

1 Like

Tanks for idea)
I tried to build AP_Logger_Test, placed it in ardupilot/Rover directory. And, the build process is faced with a fatal error.
How will it be correct to build such custom scripts?