0
0
Drone Programmingprogramming~20 mins

ArduPilot SITL setup in Drone Programming - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ArduPilot SITL Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2:00remaining
What is the output of this SITL startup command?
You run the following command to start ArduPilot SITL for a copter:
sim_vehicle.py -v ArduCopter -f quad --console --map

What will you see as the first output line in the console?
Drone Programming
sim_vehicle.py -v ArduCopter -f quad --console --map
AStarting ArduCopter SITL with quad frame
BError: Vehicle type not specified
CUsage: sim_vehicle.py [options]
DStarting SITL with plane frame
Attempts:
2 left
💡 Hint
The -v option specifies the vehicle type; -f specifies the frame.
🧠 Conceptual
intermediate
1:30remaining
Which port does SITL use by default for MAVLink communication?
When you start ArduPilot SITL, it opens a MAVLink communication port. Which port number is used by default?
A14550
B5760
C9000
D14540
Attempts:
2 left
💡 Hint
The default MAVLink UDP port for SITL is 14550.
🔧 Debug
advanced
2:30remaining
Why does this SITL command fail with 'No module named dronekit' error?
You run:
sim_vehicle.py -v ArduPlane -f plane --console

and get:
ModuleNotFoundError: No module named 'dronekit'

What is the most likely cause?
AYou used the wrong vehicle type; it should be ArduCopter
BDroneKit Python library is not installed in your environment
CThe sim_vehicle.py script is missing execute permissions
DYou need to specify the --map option to avoid this error
Attempts:
2 left
💡 Hint
DroneKit is a Python library required for some SITL features.
📝 Syntax
advanced
2:00remaining
Which command correctly starts SITL with a custom home location?
You want to start SITL with home location latitude 47.397742 and longitude 8.545594. Which command is correct?
Asim_vehicle.py -v ArduCopter -f quad --home 47.397742 8.545594 --console
Bsim_vehicle.py -v ArduCopter -f quad --home 47.397742,8.545594 --console
Csim_vehicle.py -v ArduCopter -f quad --home=47.397742 8.545594 --console
Dsim_vehicle.py -v ArduCopter -f quad --home=47.397742,8.545594 --console
Attempts:
2 left
💡 Hint
The --home option expects latitude and longitude separated by a comma with no spaces.
🚀 Application
expert
1:30remaining
How many MAVLink messages are sent in 5 seconds if SITL sends 10 messages per second?
If ArduPilot SITL is configured to send MAVLink messages at 10 messages per second, how many messages will be sent in 5 seconds?
A5
B500
C50
D10
Attempts:
2 left
💡 Hint
Multiply messages per second by seconds.