Our setup:
Raspberry Pi 4 - raspbian11
BlueOS V1.4.0-beta.17
ArduRover V4.5.7
FlightController Navigator
Vehicle type - Surface Boat
I wanted to verify the way we are interacting with the autopilot through MavSDK. When we need our boat to go to a specific location we set it to guided mode, set offboard global position, start offboard. Does this look like the correct way of going to a station point?
- Create and send passthrough command (MavlinkPassthrough)
- command = mav_cmd_do_set_mode
- param 1 = 1
- param 2 = 15 (guided)
- Create Offboard PositionGlobal structure
- set lat
- set long
- set alt to 0
- Call Offboard set_postion_global with Offboard PositionGlobal structure
- call Offboard start to get boat moving
- …
- call Offboard stop to stop it (change to another mode, etc)
Are there other ways of going to station (for a boat) using MavSDK?