mavlink (2)


Mavlink3DMap is a semi-simulator that communicates with Ardupilot SITL vid  UDP and websockets to plot vehicles location and attitudein a 3D environment. It uses HTML, javascript and some 3D and physics libraries to work. The world semi is used because this tool can integrate with any Ardupilot SITL  regardless of its engine, and read vehicles location and plot it in a 3D environment. So all physics and logic computation are performed by SITL. However, one can add 3D objects and some physics using moderate developing effort. The tool can also track multiple drones given each drone has its own SYSID_THISMAV


Below is the famouse flying field in Australia where SITL flies there by default. As we can see the map is displayed in 3D, and from multiple views. A camera is attached to drone and can be controlled via buttons. Another camera is following the drone.


The above map uses flat landscape, i.e. the map is created on a 2D Plan, but the environement is a 3D environment.

The below image shows one step forward, it creates 3D mesh of the map and adjust drone absolute altitude accordingly based on drone home location.






















This project is in its very early stage, it is free and open-source and can be accessed here. I hope people start to use and contribute to it.


Read more…

MAVLink UDP Android Example


This app makes your phone behave like MAVLink vehicle. You can connect to it using QGroundControl over UDP. The device must be either connected to the same local network, have a Wi-Fi hotspot running or a public IP address. You can also try connecting to it while using VPN. Once connected, the phone starts emitting heartbeat and information about device's attitude, location and battery.

MAVLink UDP Android Example

Read more…