git clone https://github.com/ArduPilot/ardupilot.git
cd ardupilot
git submodule update --init --recursive
Tools/environment_install/install-prereqs-ubuntu.sh -y
https://ardupilot.org/dev/docs/building-setup-linux.html#building-setup-linux
cd ~/ardupilot/ArduCopter
sim_vehicle.py --mcast --no-mavproxy
This wipes out any data stored on the fake autopilot's EEPROM and resets the data stream. After it starts, Ctrl+C to quit, and then run the simulator normally.
cd ~/ardupilot/ArduCopter
sim_vehicle.py -w
- Put the copter in
GUIDED
mode by typing the following into the prompt:
guided
- Arm the motors:
arm
- Takeoff:
takeoff
- Loiters:
loiter-high
- Land:
land
- Disarm the motors:
disarm