Servers by jDrones

Antenna Tracker - Step By Step Setup and Simulator

Documenting this will be an ongoing project. I will add to it whenever I have time. PLEASE feel free to contribute! The more insight the better! I know there are a ton of people out there that have tried and just given up when trying to make an AT and get it to work.

After fighting for weeks to get AT to work, I finally got it. Since there is limited detailed documentation on AT, I figured I would start putting together a step by step guide to what worked for me, and some key items that are critical for it to function properly that may not be immediately apparent to those of us with limited experience with Ardu/PX4. I know just about nothing about any of this and really learned and figured it out through this project and forum. Unfortunately, most of the others who responded to any of my posts for help, seemed to have the same issues, thus why I am doing this.

Here is a link to my GitHub with the .stl files, parts list, and parameters of the tracker I designed and built with a 3D printer.

All of my documentation is based on my setup using the following.

-MP 1.3.7
-Holybro Pixhawk 4 board with GPS
-AT 1.1 Stable Firmware on Windows
-Custom designed Antenna Tracker Frame, 3D printed with Carbon Fiber PLA

Key Items That Are Not Documented Well or Not Documented at All

  1. As soon as you power up the AT, it goes into Auto mode. You need to manually change the action menu and set to STOP in order to calibrate anything. Sometimes you may need to put it into manual mode, then STOP. I haven’t figured out if this is relative to firmware versions or just a oddity.

  2. AT will not start tracking a vehicle or lock onto it until it is a set distance from the unit. This parameter can be changed here - “Compass Distance_Min”
    a. When the tracker does lock on, it will make a long tone, and show “Armed” on the OLED screen if you have one connected.

  3. True Continuous Rotation Servos are the way to go, including for the pitch. I have not been able to get consistent results or tuning of PID’s with position servos, winch servos, or standard servos that have been modified to be continuous rotation. I high recommend you save yourself the hours or days of frustration and just start with high quality digital continuous rotation servos. HiTec HSR-2648CR servos from Servo City have been great so far. They are not that expensive ($40.00 each?) and well worth the initial expense vs the hours of attempts to get anything else to work correctly or consistently.

  4. Due to the nature of how AT processes data, movement, etc, If things are not properly set up right from the beginning, you can spend hours messing with parameters and tuning and finally get it to seem like its working properly, only to find out after you reboot it or try adjusting another parameter, that its suddenly a hot mess again. If you don’t know exactly what your doing or how one thing effects another ( I thought I did, but was very wrong, especially with PID’s here. I have 20+ years of 3D heli and Aero experience and this is a whole different world) it will become an infuriating experience. On a positive note, if you’re a determined freak about being able to figure things out to the end, its actually a great learning experience. I learned way more that I imagined or wanted to know about this whole autopilot deal because of this damn AT project.

Physical Hardware Setup/Layout

  1. Ensure that AHRS orientation is set properly.

  2. Make sure all compasses are mounted so that they rotate and tilt with the tracker as it moves.
    Calibrating the accelerometer, horizon, or compasses before they are mounted to their final permanent location will make life a nightmare trying to get it to work properly or consistently. ESPECIALLY PID’S! (I learned this the hard way after a full week of fighting to get anything to work) The best option is to have the entire AT rotate around a base. There is a link at the top of this post to the design I created and made with a 3D printer. It works great so far. There is also a file that lists all of the components I used to build it as well as links to the specific ones I bought. A cost breakdown PDF is at the bottom of this post. Depending on what components you may already have, the cost can be less than $100.00 or up to $500.00 if you need to purchase every individual component.

  3. If external compass is used, make sure its orientation is set properly.
    PX4/ArdP automatically makes external compasses priority. For example if your board has two internal compasses, and your GPS module as a compass as well, the board will set the ID’s as follows. Compass 0 = External GPS Compass, Compass 1 = Internal Compass, Compass 2 = Second Internal Compass.

Calibration Procedure for Accelerometer

a. Power up system and allow it to initialize.

b. Arm using safety button on GPS module.

c. Go to flight data screen and put into “STOP” mode using the “Action” menu. You have to click “set mode” after you select whatever option. Go back to Sensor Menu in Initial Setup and select “Calibrate Accel.” If nothing happens after you click “Calibrate Accel,” go back to Action Menu and make sure its in STOP mode, and is armed.

Calibration Procedure for Compass

a. Power up system and allow it to initialize.

b. Arm using safety button on GPS module.

c. Go to “Flight Data” screen and put into STOP mode using the “Action” menu. You have to click “set mode” after you select whatever option.

d. Go back to Initial Setup menu and select compass.

e. Select your board at the top, and make sure your external compass orientation and your board orientation are correct. (look at artificial horizon on flight screen and tilt AT unit to make sure horizon is moving the right direction)

f. Click on calibrate compass….You should see something happen. Green bars or digits appear. Follow standard compass calibration as documented for all other vehicles. If nothing happens after you click “Start Calibration,” go back to Action Menu and make sure its in STOP mode, and is armed.

Simulation Using Live Actual Tracker

  1. Open two separate instances of MP. If you have two or more screens, its super helpful. Otherwise you can just do a split screen. Its also ideal to adjust AT settings in real time if you have two separate Sik radio sets. Otherwise, you can connect the AT unit with USB or Bluetooth, just be carful of the rotation limits with the cable. You can always keep the simulated vehicle path limited to whatever your rotation limits with the USB cable are.

  2. Power up the AT unit and connect to MP if you wish. Otherwise, just let it do its thing.

  3. On the second instance of MP, click the simulation icon.

  4. The home location should be the last location MP had when you connected the AT unit. If not, move the map to your actual location, right click the mouse and select “Set Home Here”

  5. Select “Plane” For whatever reason, I can never get Multirotor or any of the other Sim vehicle options to work.

  6. In the Action Menu, click on “ARM/Disarm” It will probably though a few logging errors, but just ignore them.

  7. In the Action Menu, change the mode to “Takeoff” and click “Set Mode”

  8. Use your mouse and put it over a location that is directly in front of you, about 200-500 meters out. Right click the mouse and select “Fly to Here”

  9. Once the sim vehicle reaches this point, it should start to loiter in a circle.

  10. Change the loiter radius in the command box on the left of the screen to 200m.

  11. Hold down the Ctrl Key and the F Key to bring up the Temp Menu.

  12. Click on “Mavlink” and a serial Output Window will pop up.

  13. In the top drop down, Select the Com Port that your Sik Radio is connected to via USB.

  14. In the second drop down, select the baud rate for your Sik Radio. It’s most likely 57,600

  15. Your Antenna tracker should emit a long tone. This means that it has locked onto the vehicle’s Mavlink signal.

  16. Press the “Safety Button” on the AT GPS module. Be carful as it should come to life and start moving.

  17. Give the AT unit at least a couple minutes before you start adjusting anything. It will most likely go into scan mode first, then will lock onto the target location.
    From this point, you can start adjusting your AT settings for PID, and any other parameters. I highly suggest you unplug the pitch servo at first. Just focus on getting the Pan to function properly first. Once you have that dialed in, move onto the Pitch.

Antenna Tracker Cost Breakdown and Full Parts List Web 1.pdf (47.1 KB)

5 Likes

Hello,

Thanks for this sharing ! I believe this could help to make 1.2 release :wink:

1 Like

I’m going to give this a go next week. I think a lot of people have given up on Antenna Tracker because it’s been a real challenge to get it to work.
Thanks

1 Like

Hi Ian,
Thanks for your set up guide. It is well written and very helpful. I have been working on this project on and off for 2-3 years without much success, not tracking, until recently, I found out the minimum distance parameter which I adjust appropriately. Took it out to the field and it works, but only yawing…the tracker follows the quad, but not tilting. I guess I am in the right direction except some minor points which I miss, otherwise it would not yaw.
I have modified the tilt servo to rotate 180 deg, yaw servo to 360 deg. Both servos work in TEST mode.
Set up : Pixhack 2.8.4
Param of tracker as follows:–
AT__1.param (8.4 KB)

Link to photo of tracker :-- https://drive.google.com/file/d/1ONz9l3uvJnE08EOJkRfnwA30TsUfN8_v/view?usp=sharing

What are the possible causes I miss to make the tracker tilt ?
Apprciate your help.

A good idea, to explain the system. I had no succes with this even I started twice to make a photo tracker.
A assume, you connect Pixhawk of the Tracker via the telemetry to the drone. Can you then have telemetry connection to a MissionPlanner too? Mine did not.

Thanks for the tutorial. I’ve gotten up to the point of sim testing, but when I set the Mavlink output to the trackers COM and baud it gives me the message ‘if using com0com please rename the ports to COM??’

Any idea how to get past this?

I haven’t come across that one. Does the telemetry radio work when it’s connected to computer with MP to vehicle?

You can, but it’s painfully slow when it connects to the vehicle through the tracker on the same signal. I use three sik radios with the same ID. One on the vehicle, one on the AT and the third connected to MP. AT just reads the position data being sent and doesn’t transmit. MP connected to the vehicle works as normal.

Once you get the AT set up and tuned, you really don’t need it connected to MP while flying.

Hi Frank. I’ll take a look at it today and let you know if I can sort it out.

Frank…Does your GPS module have a compass in it as well?

Thanks for explication, I will try again.

@lorbass @Itmac79 A nice solution to this is to use a ‘slow’ long range sik radio between the tracker and vehicle and a fast link between tracker and PC. Wifi telem works well for the fast end, or you can use a second pair of sik radios and turn up the air side baud rate since its only short range.

Hi Peter, nice to see you again.
I tried to made a tracker as described here in the Wicki to use as Video Tracker instead the Cap Camera.
https://ardupilot.org/antennatracker/docs/frame-assembly.html
The Tracker has connected to the Kopter, but then I had nomore Telemetrie Infos in the MP. So I did not contiue because I need Telemetrie in the field.
I used One 3DS TX on the Kopter, one on the Tracker and one with the MP on the same channel.
I’m not shure if this is correct, but in the Wicki are a lot of connections with wires, Antennas, Servos inkluding Velcros :frowning:. But not how to connect and setup the 3DS Radios together with the MP. Can you help, please?

When I had it setup, I configured 3 Telemetry radios to all have the same radio ID using mission planner. I first opened MP, then I powered up the the AT and vehicle. I was able to see both on MP, and used the drop down menu on the top right to toggle control between the AT and the vehicle.

I was just using the AT connected to PC via USB for now, with a second instance of MP for the sim. I’m going to do a real world test with radios later today. I was hoping to make life a bit easier by using the sim to learn to tune it.

Yeah a 3 way link does work but is very laggy when using the default settings. You can improve this by turning down the mavlink stream rates for the tracker leaving more for the vehicle. Tracker (actually all vehicles) forwards any mavlink streams it gets in one mavlink serial port out of all the others. So just setup your two links in tracker as mavlink serial ports.

@iampete
I made a connection diagram as I understood your advise.
Can you comment if the wiring is correct and how to set the Params e.g. Serial and if the ID # of the Radios must be the same or different.
And I will modify it to help also others.


Diagram supported by @iampete

1 Like

That is correct, just set both serial ports to Mavlink. The laptop -> tracker radios should be on a different net ID to the tracker -> vehicle radios. For the laptop -> tracker link you can turn up the ‘Air Speed’, this is the baud rate they communicate with each other at. Low air baud rates give more range and higher baud rates give more bandwidth. Since the tracker is not far from the laptop you can up the baud rate to give enough bandwidth to talk to both vehicles.

Is the connection to Serial4/5 correct, or should it be Telemetry2 ?
To tune the Params of the flying vehicle works it as usual with direct link?
And is the Tuning of the Tracker with the same setup possible or may be with a USB link?
Of course I could find it by trial, but I would like to update the diagram and have actually not the needed HW.

Any serial port, 4/5 or telem2

Yep all is possible as normal, you can setup both, just make sure you have the correct vehicle selected in the drop down to the right of the connect button in MP

Servers by jDrones