Proper data manager restart handling
Introduce SYS_RESTART_TYPE parameter having one of 3 values: boot restart, inflight restart, or unknown restart, and defaulting to unknown restart. px4io.cpp sets this parameter according to the type of restart detected. dataman.c retrieves this parameter and clears data entries according to their persistence level. Does nothing if unknown restart.
Showing
- src/drivers/px4io/px4io.cpp 17 additions, 0 deletionssrc/drivers/px4io/px4io.cpp
- src/modules/dataman/dataman.c 25 additions, 8 deletionssrc/modules/dataman/dataman.c
- src/modules/dataman/dataman.h 3 additions, 2 deletionssrc/modules/dataman/dataman.h
- src/modules/systemlib/system_params.c 19 additions, 8 deletionssrc/modules/systemlib/system_params.c
Loading
Please register or sign in to comment