What is the best way to utilize QGroundControl on Jetson Nano?

Greetings,

In my current setup i have a laptop connected to jetson nano, also there is a pixhawk connected to the jetson nano via USB.

I want to pilot an underwater vehicle by sending the joystick events to jetson nano and from there the events should be mapped to the pixhawk channels.

i also compiled QGroundControl on jetson nano.

what is the best way to pilot my vehicle using the current setup ?

You could use mavsdk with sdl2 to read in joystick and send mavlink.

See this example: MAVSDK/examples/manual_control at main · mavlink/MAVSDK · GitHub