Behaviour
The ASV is a vehicle that sails over the water equiped with few sensors to measure the quality of the water and send them to a server.
Start phase:- The drone starts in a safe mode disarmed, initializing connection on the server, logging status.
- On server, Indicate one or several samplepoints to collect clicking on the map, or select a preloaded mission (created with google earth and stored as KML)
- The drone will change mission mode to:
- “2” Preloaded mission
- “4” Simple point Mission
- After confirming that the drone is in a good status (reporting problems if they arise and rejecting mission), it will move towards the mission points
- Distance towards the point as well as position of the drone and mission point are reported and showed in an image at server.
- Once point is reached drone will stop, maintaining position if currents are present, take the number of samples specified and send them to server real time.
- If there are points left it will return to step 4.
- If the drone has finished mission it will update status and wait for instructions
- For safety You are able to stop the code reaching a manual state of the drone by pulling the lever of the RC
- If the drone is in a wrong status (no GPS, IMU problems, etc) it wont start a mission and it will be reported to the server, always check the EKF status at server main page.
- The drone has extra functions like, use a planner, avoid obstacles. these are reported in the corresponding parts of the code
- The server has a tab to manage parameters, check config for a complete param list
this project had 2 original statements of how it should work
But it has evolved until reaching this solution:
To know more about the code start with First Steps in understanding the code