feat: implement telemetry parser
cel_crsf_telemetry_parse() decodes link stats, battery, heartbeat, and airspeed frames. Updated cel_telem_battery and cel_telem_airspeed structs to use uint16_t values matching CRSF protocol format.
This commit is contained in:
@@ -46,6 +46,14 @@ target_compile_features(test_crsf_stream PRIVATE c_std_23)
|
||||
add_test(NAME test_crsf_stream COMMAND test_crsf_stream)
|
||||
list(APPEND TEST_TARGETS test_crsf_stream)
|
||||
|
||||
# CRSF telemetry tests
|
||||
add_executable(test_crsf_telemetry test_crsf_telemetry.c)
|
||||
target_include_directories(test_crsf_telemetry PRIVATE "${CMAKE_SOURCE_DIR}")
|
||||
target_link_libraries(test_crsf_telemetry PRIVATE celrs_crsf Unity::Unity)
|
||||
target_compile_features(test_crsf_telemetry PRIVATE c_std_23)
|
||||
add_test(NAME test_crsf_telemetry COMMAND test_crsf_telemetry)
|
||||
list(APPEND TEST_TARGETS test_crsf_telemetry)
|
||||
|
||||
# Serial tests — mocks the platform backend (serial_internal.h)
|
||||
add_executable(test_serial test_serial.c)
|
||||
target_include_directories(test_serial PRIVATE "${CMAKE_SOURCE_DIR}")
|
||||
|
||||
Reference in New Issue
Block a user