Skip to content

Migrate several widgets to the data-lake#2449

Open
rafaellehmkuhl wants to merge 9 commits intobluerobotics:masterfrom
rafaellehmkuhl:migrate-widgets-to-data-lake
Open

Migrate several widgets to the data-lake#2449
rafaellehmkuhl wants to merge 9 commits intobluerobotics:masterfrom
rafaellehmkuhl:migrate-widgets-to-data-lake

Conversation

@rafaellehmkuhl
Copy link
Copy Markdown
Member

@rafaellehmkuhl rafaellehmkuhl commented Mar 3, 2026

Depends on #2441 and #2448.

Helps with milestone 17 (relevant to #2153, #2154, and #2155).

I'm initially moving them to consume from the data-lake, and I will them modify them to allow for the selection of the desired source (variable).

@rafaellehmkuhl rafaellehmkuhl force-pushed the migrate-widgets-to-data-lake branch from 03b04af to 00f9871 Compare March 3, 2026 17:53
Replaces the vehicle store attitude watch with useDataLakeVariable
composable. Roll and pitch are now read from configurable data lake
variable IDs (default: /mavlink/1/1/ATTITUDE/roll and pitch).
Removes useMainVehicleStore dependency.
Replaces the vehicle store attitude watch with useDataLakeVariable
composable for yaw. The variable ID is now configurable via
widget.options.yawVariableId (default: /mavlink/1/1/ATTITUDE/yaw).
Removes useMainVehicleStore dependency.
Replaces vehicle store watches for roll, pitch, and camera tilt with
useDataLakeVariable composable. All three variable IDs are now
configurable via widget options. Also fixes the broken genericVariables
watch by reading cameraTiltDeg directly from the data lake.
Removes useMainVehicleStore dependency.
Replaces the vehicle store altitude watch with useDataLakeVariable
composable. The depth source variable ID is now configurable via
miniWidget.options.depthVariableId (default: /mavlink/1/1/AHRS2/altitude).
Properly accepts MiniWidget props. Removes useMainVehicleStore dependency.
Replaces the vehicle store altitude watch with useDataLakeVariable
composable. The variable ID is configurable via miniWidget.options.
altitudeVariableId (default: /mavlink/1/1/GLOBAL_POSITION_INT/relative_alt).
Raw value is in mm from MAVLink, converted to meters by dividing by 1000.
Properly accepts MiniWidget props. Removes useMainVehicleStore dependency.
@rafaellehmkuhl rafaellehmkuhl force-pushed the migrate-widgets-to-data-lake branch 2 times, most recently from 2ad8810 to a541990 Compare March 12, 2026 19:45
Replaces vehicle store powerSupply/instantaneousWatts access with
useDataLakeVariable composable. Voltage, current, and remaining are
now read from configurable data lake variable IDs. Raw MAVLink units
(mV, cA, %) are converted in local computed properties. Watts is
computed locally as voltage * current instead of reading from the store.
Removes useMainVehicleStore dependency.

Default variable IDs:
- voltageVariableId: /mavlink/1/1/SYS_STATUS/voltage_battery
- currentVariableId: /mavlink/1/1/SYS_STATUS/current_battery
- remainingVariableId: /mavlink/1/1/SYS_STATUS/battery_remaining
@rafaellehmkuhl rafaellehmkuhl force-pushed the migrate-widgets-to-data-lake branch from a541990 to f774b22 Compare March 12, 2026 20:01
@ES-Alexander ES-Alexander added the docs-needed Change needs to be documented label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-needed Change needs to be documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants