uav.utils#

Attributes#

Functions#

camel_to_snake(name)

find_folder(folder_name, search_path)

find_folder_with_heuristic(folder_name[, home_dir, ...])

get_airframe_details(px4_path, airframe_id)

Parses PX4 airframe files to find vehicle type and model name from an ID.

clean_text(text)

Remove ANSI escape codes from text.

Module Contents#

R_earth = 6378137.0#
pink = ((140, 120, 120), (175, 255, 255))#
green = ((30, 110, 20), (40, 255, 255))#
blue = ((85, 120, 60), (140, 255, 255))#
yellow = ((10, 100, 100), (30, 255, 255))#
red = (((0, 80, 80), (10, 255, 255)), ((160, 80, 80), (179, 255, 255)))#
vehicle_id_dict#
airframe_class_fallback#

Airframe IDs All PX4 supported IDs can be found here: https://docs.px4.io/main/en/airframes/airframe_reference However, IDs available for simulation can be found in PX4-Autopilot/ROMFS/px4fmu_common/init.d-posix/airframes

vehicle_camera_map#
camel_to_snake(name)#
find_folder(folder_name, search_path)#
find_folder_with_heuristic(folder_name, home_dir=None, keywords=('penn', 'air'))#
get_airframe_details(px4_path, airframe_id)#

Parses PX4 airframe files to find vehicle type and model name from an ID. Returns: (vehicle_class, model_name) Example: (4001) -> (AirframeClass.MULTICOPTER, ‘x500’)

clean_text(text)#

Remove ANSI escape codes from text.