Developer

figuring out the Antenna Tracker

3691139590?profile=originalNot many people know but we have an piece of open source software for controlling an Antenna Tracker.  It's been built by Tridge (Arduplane lead developer) for use in the outback challenge.

Sadly we have no documentation and, as far as I know, nobody except Tridge has used it.  Still given Tridge's track record on building great software I suspect it works well and if it doesn't, I'm sure we can fix it.  So to not let this piece of code go to waste, I'd like some help from people who are interested to give it a try and help me figure out how it works.

Here's the little that I know:

  • It runs on any of our supported board (APM1, APM2, PX4, Pixhawk, Flymaple and perhaps VRBrain)
  • For APM1/APM2 users building the code is as easy as opening our hacked ArduinoIDE and selecting File > SketchBook > Tools > AntennaTracker and then building in the normal way.  For PX4/Pixhawk, our autobuilder doesn't automatically build a binary but I can provide one if people are interested.
  • It can control a Pan and Tilt gimbal like this or this found on servocity.com.
  • It may or may not require a GPS
  • It must somehow receive vehicle position updates from the ground station which has the telemetry radio that is connected to the vehicle. Maybe through a USB cable.  Tridge probably uses the python ground station, MAVProxy, to passthrough the vehicle position data to the AT but perhaps we can get MichaelO to build out a similar feature in Mission Planner.
  • I imagine this antenna tracker could also be used to keep a camera focused on the vehicle which might be good for easing the burden on creating videos of our vehicles.

So if you want to give it a try please do and stick any findings, questions or issues below. Alternatively Issues can go into the issues list.

I'll start sticking things into the wiki as they become clear.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

                  • I managed to compile it for Pixhawk, but I am unable to test it since I don't have any Pixhawk at this time. If you like you can try uploading it, but of course I cannot guarantee it will work. It may even be harmful for your board any you do it at your own risk etc... :)

                    If you try it let me know the results

                    AntennaTracker-v2.px4

  • Hi Randy

    I am having some problems with Antenna Tracker, hoping you can help, I think it is something obvious I am missing.

    The problem seems to be that the antenna tracker and the plane are not talking. I don't get the plane showing up on the map, only the tracker. When I press CTRL-X, I only have the option of ID 2 which is the AT. I've checked on the plane and it's ID is set to 1, and the AT is set to iD 2.

    The telemetry radios have a solid green light and flashing red light on both ends, telling me that data is flowing. If I connect the AT's telemetry radio directly to my PC via USB, I can connect to the plane, and all the data downloads normally.

    I've checked the baud rates for the radios, the plane and the AT, and all are set at 57,000 for SR1. I've also set the SR1_POSITION values and other SR1 values too.

    After all this, when I power up the AT it simply 'twitches' a little bit, but doesn't move otherwise. If I set the mode to 'manual' it will spin to 0 but then nothing more. When I connect to the AT via USB, I can only see the AT and not my plane. The AT has a solid GPS lock, as does the plane.

    My setup is as follows:

    • Tracker is an APM 2.5 board with telemetry radio connected to the 3DR radio port. External GPS and internal compass. Board powered by USB, servos powered by external UBEC.
    • Plane is an APM 2.5 board with telemtry radio connected to the 3DR radio port, split along with MinimOSD. I have removed minimOSD for the purposes of troubleshooting. External GPS and external compass.

    I've attached my plane and AT parameter files, along with screenshots of the 3DR radio configuration.

    Thanks in advance for your help!

    James

    apm_plane_params.param

    antennatracker_params.param

    telemetry_radio_settings.jpg

    • Update - I now have the antenna working in a full 360 degree rotation, however there is another problem.

      When flying counter-clockwise around the tracker, it reaches its endpoint and spins around 360, and continues tracking. However, when flying clockwise, the tracker hits the endpoint and stops, and only returns to tracking when the plane flies in front of the tracker again in a counter-clockwise direction.

      Any ideas?
    • Ok I did some field testing today. The tracker works, but seems to have a very narrow 'angle' in which it operates.

      If the plane is within a certain 90 degree wide band, the tracker operates well. Once the plane moves outside this band, the tracker simply stops. Upon re-entering this band, the tracker resumes operation.

      I am using a 360 degree servo. I have tried playing with the RC1 min, max and midpoints, but couldn't seem to resolve this behavior.

      Here is a video that shows the problem: https://youtu.be/hvrKCyGycx4

      Any thoughts on this?
    • Hi Fred, no the quad does not have to be armed for tracking to work.
      • Thanks for reply

    • Telemetry and USB are on the same port. You will need to move the telemetry to UART2. This, in my experience, will not solve all your problems however. I don't believe this is been tested on the Apm. There is a magical combination of parameter settings that I cannot decode. I can either find help more information to help figure out what the parameter settings should be. Good luck and if you find a solution please let me know.
      • I should have proof read that. Should have said:

        I can neither find help or more information to help figure out what the parameter settings should be. Good luck and if you find a solution please let me know.
        • Thank you Keith!

          I have now got the telemetry working, the plane and tracker are talking, and the tracker moves when I move the plane around.

          I think I need to adjust the PIDs to get it pointing accurately. Once I have everything operating properly I will be making a youtube how-to video. Perhaps I can help you get yours working as well!

          • Please help me by sending me your parameters. Mine must be wrong. Thanks
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…