Any event by sensor triggered, then RTL

For sample, a truck, when load full sensor triggered, executes a command RTL or jump to waypoint number.
It likes the condition that is triggered by the sensor, then change the route in Mission Plan.
Is it possible?


I think it would require a bit of software development to do that. The best way might be to use a companion computer (like a Raspberry Pi) to read the value from the sensor and then trigger the RTL using DroneKit/MAVLink.

Maybe in the future it will be possible to do with Lua scripting but that hasn’t been implemented yet so the above solution is all we have.