Servers by jDrones

Follow Mode - Copter

Hello, I’d like to use “Follow Mode” to allow a copter following a moving marker. The position and orientation of the marker will be obtained by an onboard camera. I’ve read that Follow Mode allows to follow an object publishing its position. However, the wiki ( doesn’t explain how the position data should be organized…

I wonder the meaning of the sentence “The vehicle lead vehicle’s position must be published to the vehicle in Follow mode using a telemetry system.”

Does anyone knows what kind of data does Follow Mode expect and in which port should I provide them?

Thank-you in advance.

The target vehicle publishes his GPS coordinates (the target vehicle has it’s own GPS receiver) via mavlink messages over a telemetry link into the follower vehicle.
Usually the target vehicle has a PC on board with some GCS software, and that GCS software reads the GPS data and sends it to the follower vehicle.

Really interesting, thankyou…!
Could you please give more details? Which GCS software is needed? Which port should I use for the telemetry link (serial, telem 2…)? If I provide to the copter GPS NMEA sentences with the coordinate of the target, do you think the system could work?
Sorry, I’m quite new to ArduCopter… thank-you in advance


To use follow mode, the mavlink GLOBAL_POSITION_INT message should be fed into the flight controller.

by the way, if you’re planning to hover over a target, then you may instead choose to pass in LANDING_TARGET messages and then precision landing and precision loiter will work. Below is a video doing this with an IRLock sensor:

That’s great!
It’s a lot easier to stick a beacon onto something, than to need a phone or laptop with software and good GPS reception.
Does the irlock sensor also function as an optical flow sensor?

@rmackay9 Thankyou, that’s great. I’ll try both of them. Is Serial4/5 fine to feed the autopilot with mavlink messages, isn’t it?

@S259420, yes it should be possible to pass in the global-position-int message through any of the serial ports on the flight controller.

Hi, I just installed AC3.6.11 on pixhawk. But the ‘Follow’ parameters are missing from the full param list in mission planner. they do exist in AR3.5


@novaent, I think it’s most likely that the flight controller suffers from the “1MB Flash Limit” issue meaning that it gets a limited number of features.

Now, it’s possible that the full firmware may fit on the board anyway so you could try loading the “fmuv3” firmware on the flight controller (firmware can be downloaded here, look for the file ending in .apj).

Hi mackay, thanks for the great support. I did load the arducopter.apj file sent by you. The problem of “Follow mode” parameters is on fmuv2 (pixhawk-1) and NOT on fmuv3 (cube). They are all visible on cube.

ANother issue: When I load the older versions AC3.2.1 & AC3.3 the Pixhawk1 (fmuv2) does not bootsup. There is NO problem with AC3.4 and above versions.

Thanks, ravi

Do not downgrade versions, unless you have saved backups with version specific parameter files and upload them after updating.
Failing to do so will get you strange results. Just use the latest versions and do not downgrade.

Did any one had luck with the new ‘follow mode’. I tried all combinations but the drone does not follows the rover. i have telemetry link bewtween the rover and copter. both modems are communicating. i am using AC3.6 on copter and AR2.0 on rover. can someone help.

I used all the features. But the Follow mode does not work. Both the rover and the copter installed 4.0.3 Ardupilot. Telemetry with identical NETID is installed on the rover and copter. At the ground station, two vehicles are visible. Different SYSID_THISMAV are assigned to the rover and the copter (since the SYSID is both 1 by default), the FOLL_SYSID of the copter is selected in the SYSID rover settings. When you turn on the Follow mode, nothing happens. Does anyone have any ideas how to make this mode work?

Hi @rmackay9,
I am trying to follow a car detected by the drone’s camera. I have reliable lat, lon, alt or x,y,z (wrt drone’s home) target positions. How can I use the FOLLOW mode to keep following this target?

Read the follow me documentation on the ardupilot wiki but it relies on a GCS with a GPS on the moving car.
You do not have that, your drone uses it`s own camera to do the math, so you will need dronekit python or mavros to control the arducopter in guided mode.

I`ve implemented this second method and it works great.

Yes, I am using macros. Does my answer here sound reasonable? I will implement this tomorrow.


Servers by jDrones