NovaGlide ultrasonic HAL

This commit is contained in:
2026-01-05 03:45:05 -05:00
parent b6b30689dc
commit 3094de917d
5 changed files with 31 additions and 13 deletions

View File

View File

@@ -1 +1 @@
518cf1bd1fa4fb1820645932052b1d57b930a088
b6b30689dc970a49457e2515226b6d36de1342e0

File diff suppressed because one or more lines are too long

View File

@@ -29,16 +29,6 @@ typedef struct {
ultrasonic_system_t *ultrasonic;
} telemetry_context_t;
// Telemetry bridge context
static telemetry_context_t telem_ctx = {
.temp = &temp,
.ina = &ina,
.motors = &motors,
.mqtt = &mqtt,
.ultrasonic = &ultra
};
// Task to bridge sensor data to MQTT
static void telemetry_bridge_task(void *arg) {
telemetry_context_t *ctx = (telemetry_context_t *)arg;
@@ -127,8 +117,8 @@ void app_main(void)
.temp = &temp,
.ina = &ina,
.motors = &motors,
.mqtt = &mqtt
//.ultrasonic = &ultra
.mqtt = &mqtt,
.ultrasonic = &ultra
};
xTaskCreate(telemetry_bridge_task, "telemetry", 4096, &telem_ctx, 5, NULL);