Complete the code to set the leader drone's speed to 5 meters per second.
leader_drone.set_speed([1])The leader drone's speed is set to 5 m/s to maintain a steady pace for the formation.
Complete the code to make the follower drone maintain a distance of 3 meters behind the leader.
follower_drone.set_follow_distance([1])The follower drone keeps 3 meters behind the leader to maintain safe formation spacing.
Fix the error in the code to correctly update the formation position of the follower drone.
follower_drone.update_position(leader_drone.position [1] follower_drone.offset)The follower drone's position is the leader's position minus the offset to stay behind.
Fill both blanks to create a dictionary mapping each drone's ID to its current altitude if altitude is above 10 meters.
altitudes = {drone.id: drone.[1] for drone in drones if drone.[1] [2] 10}We use 'altitude' to get the drone's height and filter drones flying above 10 meters using '>'.
Fill all three blanks to create a dictionary of drone IDs with their speeds if speed is less than 8 m/s.
slow_drones = {drone.[1]: drone.[2] for drone in drones if drone.[2] [3] 8}The dictionary maps drone IDs to their speeds, filtering drones moving slower than 8 m/s.