Mavproxy Send Mission, Non-GPS

I am using an Optitrack system and would like to make autonomous missions.

So in reference to this discussion.

I see you can send a mission via Mavproxy, but I am wondering what the procedure is for Non-GPS applications. The shown examples are only using lat/long.

The Optitrack system works well in Loiter and Circle mode but I would like to make specific routes to follow, along with takeoff and landing.

Any ideas or input is appreciated.

Thanks.

ArduPilot missions operate in a global frame. All missions need to be specified in lat/long format.

As per Optitrack for Non-GPS Navigation — Copter documentation, you will need to set GPS_GLOBAL_ORIGIN to map the Optitrack coordinates to lat/long coordinates.

@stephendade, Thank you for the confirmation about that we need to convert from the optitrack lat/long.

Is there any documentation or methods to establish the correct methods to do this?

Thanks, Tristan.

As per my previous message, you need to send the GPS_GLOBAL_ORIGIN MAVLink message to the flight controller to map the local frame 0,0,0 origin to a global frame long/lat.

I assume you’re using MAVProxy? In that case use setorigin LAT(deg) LON(deg) ALT(m) command to set the origin.

@stephendade

Thank you for that confirmation.

I see in Optitrack page that the actual location is not critical. but then the next coordinate must be the correct distance.

I will try using mavproxy or try to get the mavlink to fwd to mission planner.

Thanks again for the confirmations.

@stephendade Thanks, so far is working but if you can see my topic about RTL.

Thanks.

I’m not really a copter expert, so probably wouldn’t be able to assist there. In any case, an attached logfile showing the issue would help other devs diagnose your issue.