Return-to-Launch (RTL) on High Wind Indication

We are attempting to integrate the FT743-SM wind sensor to detect wind speed for our quadcopter. The sensor communicates via serial interface or CAN. Our application involves setting the Return-to-Launch (RTL) function to activate during high wind conditions. Currently, we are using the Pixhawk Cube Orange+ for our project. Could someone please assist us with this integration.

Thank you.

In Arducopter you can do the wind estimation calibration procedure and you dont need any external sensor.
You’d probably be able to check wind speed versus ground speed in a LUA script and trigger RTL.

There is wind estimate, ground speed, air speed and much more
https://ardupilot.org/copter/docs/common-lua-scripts.html#ahrs-ahrs

Plus if you set up the wind estimation, you can use the dead reckoning script for when GPS reception disappears.