Implement native ESP-IDF radar firmware
Some checks failed
build / host-tests (push) Has been cancelled
build / esp-idf (push) Has been cancelled

This commit is contained in:
2026-07-21 07:47:02 +00:00
parent 8a43efb3f6
commit b473ed4369
28 changed files with 3770 additions and 1 deletions

30
main/radar_service.h Normal file
View File

@@ -0,0 +1,30 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "esp_err.h"
#define RADAR_SERVICE_MAX_TARGETS 3
typedef struct {
bool valid;
uint32_t id;
float x_mm;
float y_mm;
float speed_cm_s;
uint16_t resolution_mm;
uint32_t age_ms;
} radar_target_view_t;
typedef struct {
bool sensor_online;
uint8_t target_count;
uint32_t frame_count;
uint32_t invalid_frame_count;
uint32_t last_frame_age_ms;
radar_target_view_t targets[RADAR_SERVICE_MAX_TARGETS];
} radar_snapshot_t;
esp_err_t radar_service_init(void);
void radar_service_get_snapshot(radar_snapshot_t *snapshot);