Skip to content

blueye.sdk.constants

constants

This file contains constants used by the SDK.

EVENT_DRIVEN_TELEMETRY module-attribute

Telemetry messages the drone publishes when their data arrives rather than on a timer.

A new sonar ping, a detection, a dive annotation, a changed camera filter or a plugged-in storage device is published as it happens, so these messages have no publish frequency and set_msg_publish_frequency raises for them. Messages from peripherals are also only published while the peripheral is connected.

IMU_ERROR_FLAGS module-attribute

IMU_ERROR_FLAGS = frozenset(
    {"imu_1", "imu_2", "imu_hp", "imu_attitude"}
)

Error flags for the drone's IMUs, reported from Blunux 5.2.

Drones running older Blunux do not report them, and the flags read as false there, so get_error_flags leaves them out on those drones.

JETSON_MODELS module-attribute

JETSON_MODELS = frozenset({MODEL_X3_ULTRA, MODEL_X7})

Drone models built on the NVIDIA Jetson platform.

These models have the 4K camera, which differs from the camera in the older models in the controls it offers (no hue control, 60 fps support, main camera calibration published in DroneInfoTel). MODEL_NEXT was a retired prototype and is not included.

WaterDensities

Various typical densities for water (in grams/liter).

Attributes:

  • fresh (float) –

    Density of fresh water.

  • brackish (float) –

    Density of brackish water.

  • salty (float) –

    Density of salty water.