Consider creating a connection class that would be responsible for connecting a mav_vehicle instance to a mavlink vehicle. This class should be able to connect to any mavlink vehicle after receiving it's udp/tcp address and port, shifting the responsibility of creating a socket from the user of the api to the api itself.
Consider creating a connection class that would be responsible for connecting a mav_vehicle instance to a mavlink vehicle. This class should be able to connect to any mavlink vehicle after receiving it's udp/tcp address and port, shifting the responsibility of creating a socket from the user of the api to the api itself.