I'd like to send altitude or distance sensor information from an external computer (companion) to the autopilot via MAVlink. Is it possible?
I explain better.
Scenario 1: I have a range sensor not directly integrated with PX4 but which can publish mavlink messages "DISTANCE_SENSOR" (it can send any MAVlink message actually). Will the onboard mavlink read the message and use it as distance sensor or should I modify the code?
Scenario 2: I have an external estimation of altitude/altitude from terrain. Can I send a MAVlink message to the autopilot which overrides the actual altitude, or which use the data in the EKF2?