I have and arduino mega doing a couple calculations and outputs new coordinates.
I’m wondering if the 0x10 / 16 MAV_CMD_NAV_WAYPOINT command is what i should be looking for and how to implement it.
So far, although i get the logic of MavLink, i still cannot get it working. Now, with the above command, i’m even more confused.
Since i include convenient functions, wouldn’t that be easier with just mavlink_msg_waypoint_set_current_send();
(if i fix the error “was not declared in this scope”)?
I tried the project’s “Follow me” libraries, but even there the functions/variables have different names.
So, i only have to make convenient functions work and send mavlink_msg_waypoint_set_current_send() once per waypoint? And after that, the plane is going to loiter?
Would it be a viable solution to use guided the whole time and just push new mission waypoints from arduino? (even the ones that i actually need).
Or is there a way to change from auto to guided, push the waypoint and then return to auto (after reaching it)?
Since i still haven’t found a solid solution, i’ll bypass the problem using a receiver to receive the new waypoint and telemetry (+tablet) to guide the uav manually.