Commit Graph

6 Commits

Author SHA1 Message Date
Ovizro 539ea0e170 refactor(extern_interface): implement deinitialization and improve event handling
- Add extern_interface_deinit() function for proper deinitialization
- Implement event queue with move semantics for better performance
- Update telemetry and alarm handling logic
- Refactor code to use more modern C++ features and improve readability
2024-12-02 14:48:26 +08:00
ovizro 6fb6402219 feat(event): implement new event handling mechanism
- Rename and restructure event-related functions and data structures
- Introduce unique_ptr for automatic memory management of event arguments
- Add new event types and update existing ones
- Modify telemetry and host communication threads to use new event system
- Remove redundant code and optimize data handling
2024-11-30 18:26:46 +08:00
Ovizro c9ef0edda6 refactor(extern_interface): rename and restructure telemetry data handling
- Rename ET_TYPE_TELEMETRY_REQUEST to ET_SYS_STATUS_WAKE
- Rename get_telemetry_request_data to get_telemetry_data
- Rename extern_interface_handle to handle_pack
- Move telemetry data preparation from host_com.cpp to extern_interface
- Simplify volume grade, system version, and application version handling
2024-11-30 02:44:08 +08:00
ovizro a2f04fb3cb refactor(comframe): move common definitions and implement serial port functions
- Move common definitions from defines.h to comframe.h
- Implement get_com_tty_id and init_tty functions in comframe.cpp
- Update extern_interface to use pthreads and inicpp
- Simplify event handling in event.cpp
- Remove unused includes and cleanup code in various files
2024-11-29 18:07:35 +08:00
ovizro 4669644cce add a test case 2024-11-28 18:14:00 +08:00
ovizro 9bf7306aa2 init repo 2024-11-28 16:31:00 +08:00