Skip to content

Deprecated properties

v2.8.0 replaced the properties that exposed drone state and control with explicit getter and setter methods. The old names still work but emit a DeprecationWarning on every read and write, and they will be removed in v3. Code written for v2.0 to v2.7 can be updated one name at a time with the tables below.

The warning names the replacement. Python shows each deprecation warning once per location by default; to see every use a script makes while it runs, turn them all on:

python -W always::DeprecationWarning my_script.py

Motion.current_thruster_setpoints is read-only, like the other properties without a setter below. Set the setpoints with send_thruster_setpoint() or the individual setters. Assigning to a read-only property raises AttributeError.

Camera.resolution maps to get_resolution() and set_resolution(), which are deprecated as well, and drones running Blunux 4.4 or newer ignore that resolution. Use set_stream_resolution() and set_recording_resolution() instead, and their getters to read the values back.

The tables are generated from the list the test suite checks, so every row has a test behind it.

Drone

Deprecated property Read with Write with
lights get_lights() set_lights()
connected_clients get_connected_clients() read-only
client_in_control get_client_in_control() read-only
depth get_depth() read-only
pose get_pose() read-only
altitude get_altitude() read-only
error_flags get_error_flags() read-only
active_video_streams get_active_video_streams() read-only
water_temperature get_water_temperature() read-only
dive_time get_dive_time() read-only

Config

Deprecated property Read with Write with
water_density get_water_density() set_water_density()

Battery

Deprecated property Read with Write with
state_of_charge get_state_of_charge() read-only

Motion

Deprecated property Read with Write with
surge get_surge() set_surge()
sway get_sway() set_sway()
heave get_heave() set_heave()
yaw get_yaw() set_yaw()
boost get_boost() set_boost()
slow get_slow() set_slow()
current_thruster_setpoints get_current_thruster_setpoints() read-only
auto_depth_active is_auto_depth_active() enable_auto_depth()
auto_heading_active is_auto_heading_active() enable_auto_heading()
auto_altitude_active is_auto_altitude_active() enable_auto_altitude()
station_keeping_active is_station_keeping_active() enable_station_keeping()
weather_vaning_active is_weather_vaning_active() enable_weather_vaning()

Gripper

Deprecated property Read with Write with
grip_velocity get_grip_velocity() set_grip_velocity()
rotation_velocity get_rotation_velocity() set_rotation_velocity()

Tilt

Deprecated property Read with Write with
angle get_angle() read-only
stabilization_enabled is_stabilization_enabled() enable_stabilization()

Overlay

Deprecated property Read with Write with
temperature_enabled is_temperature_enabled() enable_temperature()
depth_enabled is_depth_enabled() enable_depth()
heading_enabled is_heading_enabled() enable_heading()
tilt_enabled is_tilt_enabled() enable_tilt()
date_enabled is_date_enabled() enable_date()
logo get_logo() set_logo()
depth_unit get_depth_unit() set_depth_unit()
temperature_unit get_temperature_unit() set_temperature_unit()
cp_probe_enabled is_cp_probe_enabled() enable_cp_probe()
distance_enabled is_distance_enabled() enable_distance()
altitude_enabled is_altitude_enabled() enable_altitude()
thickness_enabled is_thickness_enabled() enable_thickness()
thickness_unit get_thickness_unit() set_thickness_unit()
drone_location_enabled is_drone_location_enabled() enable_drone_location()
shading get_shading() set_shading()
gamma_ray_measurement_enabled is_gamma_ray_measurement_enabled() enable_gamma_ray_measurement()
timezone_offset get_timezone_offset() set_timezone_offset()
margin_width get_margin_width() set_margin_width()
margin_height get_margin_height() set_margin_height()
font_size get_font_size() set_font_size()
title get_title() set_title()
subtitle get_subtitle() set_subtitle()
date_format get_date_format() set_date_format()

Camera

Deprecated property Read with Write with
is_recording is_recording_active() set_recording()
record_time get_record_time() read-only
bitrate get_bitrate() set_bitrate()
bitrate_still_picture get_bitrate_still_picture() set_bitrate_still_picture()
exposure get_exposure() set_exposure()
whitebalance get_whitebalance() set_whitebalance()
hue get_hue() set_hue()
resolution get_resolution() set_resolution()
stream_resolution get_stream_resolution() set_stream_resolution()
recording_resolution get_recording_resolution() set_recording_resolution()
framerate get_framerate() set_framerate()
recording_codec get_recording_codec() set_recording_codec()
recording_bitrate get_recording_bitrate() set_recording_bitrate()
streaming_protocol get_streaming_protocol() set_streaming_protocol()