ArduPilot / ardupilot_wiki

Repository for ArduPilot wiki issues and wiki-specific website infrastructure.
Other
501 stars 1.25k forks source link

Document AntennaTracker simulation in SITL #93

Open hamishwillee opened 9 years ago

hamishwillee commented 9 years ago

Document Antenna Tracker Simulation:

  1. How to start a virtual antenna tracker
  2. How to use a real antenna tracker with a virtual aircraft (SITL)

Information below from @tridge in drones-discuss:

Are there also any unit-tests cpp files for the AntennaTracker?

not unit tests as such, but you can start an antenna tracker in SITL like this:

sim_vehicle.sh -T -j8 --console --map

the -T means to start a virtual antenna tracker as well as the virtual aircraft. That should work on both windows and Linux SITL.

The antenna tracker simulator is here.

It can simulate either position servos or onoff servos. It can't simulate rate servos yet. Patches would be welcome for that.

If you are working on the AntennaTracker code I'd suggest you modify the simulator to match your real tracker, then use that for testing.

You can also use your real antennatracker with a virtual SITL aircraft. I found that very useful when initially developing the code. I setup SITL to fly around my hours (my virtual house!) then setup my real antennatracker to point at the virtual aircraft. That allowed me to easily test the code and the mechanism.

Gabriele1995 commented 8 years ago

I have a real antenna tracker in my office. I would like to make it track virtual plane. How to make 3DR Radio to talk to Sitl?

hamishwillee commented 8 years ago

@Gabriele1995 This area is for issues with the wiki, not tech support - suggest you ask this question on the APM forums.

rmackay9 commented 8 years ago

@Gabriele1995, i don't know how to do that exactly but it should be possible to make SITL forward on packets from the vehicle to a COM port on the machine which is connected to the tracker. maybe check sim_vehicle.py ?

gmorph commented 7 years ago

We don't normally document how to run SITL for a specific vehicle type. However within the Dev wiki we have a whole SITL section. I'll try to add a small amount of doco on how to do it in here: http://ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html Thanks, Grant.

hamishwillee commented 7 years ago

We show how to run SITL for copter/plan, and rover is the same. The antenna tracker is different though - its not even clear what simulating an AT should "mean". So IMO this is worth documenting. The description section above is supposed to provide enough information to work out how to answer the "what does it mean to simulate AT" and "how you do it"

brunoolivieri commented 5 years ago

This Issue seems a discussion for the forums. Would this issue still make sense to stay open?

rmackay9 commented 5 years ago

I think it is documented somewhere on the wiki but I'm not sure. I can't immediately find it: http://ardupilot.org/dev/docs/simulation-2.html.

We should leave this open until we confirm we have details on how to start tracker in SITL.