Antenna Tracker
Basic Example
The ant_track.c code in the paparazzi3/sw/ground_segment/cockpit folder estimates the azimuth and elevation angles based on the information contained in the GPS and NAVIGATION telemetry messages through the IVY bus.
To use it,
1. Open a terminal window and go to the "/sw/ground_segment/cockpit/" folder.
2. Compile it with:
make ant_track
3. Run it with:
./ant_track
4. A GUI should appear. Click on AUTO.
5. Launch an aircraft in paparazzi (use the simulator) and you will see the azimuth/elevation updated on the GUI.
Sophisticated Pololu Based Tracker
The basic code has been modified to send the azimuth/elevation values through USB to the Pololu servo controller.
To use it,
1. Open a terminal window and go to the "/sw/ground_segment/cockpit/" folder.
2. Compile it with:
make ant_track_pmm
3. Run it with:
./ant_track_pmm
4. A GUI should appear. Click on AUTO.
5. Launch an aircraft in paparazzi and you will see the azimuth/elevation updated on the GUI.
The following input arguments are possible:
--port=xxx..x' opens port xxx..x, example --port=/dev/ttyACM0 (Default). --pan=xxx' sets pan mode to 180 or 360 degrees. Example --pan=180 (Default). --zero_angle=xxx' set the mechanical zero angle. Default is 0 (North). --id=xx' sets the Pololu board id. Example --id=12 (Default). --servo_acc=xxx' sets the servo acceleration. Example --servo_acc=3 (Default). --pan_servo=x' sets the pan (Theta) servo number. Example --pan_servo=0 (Default). --tilt_servo=x' sets the tilt (Psi) servo number.Example --tilt_servo=1 (Default). --pan_epa=xx..x' sets the Azimuth servo's max travel (Default is 1100us). --tilt_epa=xx..x' sets the elevation servo's max travel (Default is 1100us). HINT: a negative value EPA value reverses the servo direction. --pan_servo_center_pw=xx..x' sets the Azimuth servo's center position (Default is 1500us). --tilt_servo_center_pw=xx..x' sets the elevation servo's center position (Default is 1500us).
Notes: