Complete the code to read the vehicle's current latitude.
latitude = vehicle.location.global_frame.[1]The latitude value is accessed using lat from the global location frame.
Complete the code to read the vehicle's current roll angle.
roll_angle = vehicle.attitude.[1]The roll angle is accessed using the roll attribute of the vehicle's attitude.
Fix the error in reading the vehicle's battery voltage.
battery_voltage = vehicle.battery.[1]The battery voltage is accessed using the voltage attribute.
Fill both blanks to read the vehicle's longitude and altitude.
longitude = vehicle.location.global_frame.[1] altitude = vehicle.location.global_frame.[2]
Longitude is accessed with lon and altitude with alt from the global location frame.
Fill all three blanks to create a dictionary with keys as attitude angles and values from the vehicle's attitude.
attitude_dict = {
'[1]': vehicle.attitude.[2],
'[3]': vehicle.attitude.yaw
}The dictionary keys are strings naming the angles, and values are the corresponding vehicle attitude attributes.
