aboutsummaryrefslogtreecommitdiff
path: root/src/modules/dataman
Commit message (Collapse)AuthorAgeFilesLines
* dataman: added macro for offboard storage selectionAnton Babushkin2014-07-071-0/+2
|
* Merge branch 'master' into dataman_state_nav_rewriteAnton Babushkin2014-06-301-1/+2
|\
| * Fix compiler warningsDon Gagne2014-06-291-1/+2
| |
* | Move MISSION_STATE read/write from mavlink to navigator and commanderAnton Babushkin2014-06-131-11/+1
| |
* | dataman: rename SYSTEM_STATE section to MISSION_STATEAnton Babushkin2014-06-122-5/+5
| |
* | dataman: allow writing empty items with nullptr pointer to dataAnton Babushkin2014-06-092-2/+4
| |
* | Create system state entry in dataman - ATTN AntonJean Cyr2014-06-082-6/+70
|/ | | | | Create persistent system state id for data manager to store system state that will persist across resets.
* Merge branch 'master' of github.com:PX4/Firmware into stack_sweepLorenz Meier2014-05-151-6/+23
|\
| * Merge pull request #938 from jean-m-cyr/masterLorenz Meier2014-05-141-6/+23
| |\ | | | | | | Reduce potential dataman memory fragmentation
| | * Free data manager work items the same way they were allocatedJean Cyr2014-05-131-4/+8
| | | | | | | | | | | | | | | Since data manager work items are allocated in groups of 8, they need to be freed the same way should the manager need to stop.
| | * Reduce potential dataman memory fragmentationJean Cyr2014-05-131-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The data manager dynamically allocates relatively small work item blocks on an as needed basis. It never frees these, instead maintaining then in a list of available block for reuse when needed. Even if these blocks are small, the are required at non-deterministic times and can end up scattered in memory thus causing memory fragmentation. In order to mitigate this problems work item blocks are allocated in groups of 8 in contiguous memory to reduce the number of scattered memory allocations. In reality, based on current usage, rarely will more than one group of 8 be allocated.
* | | Merge branch 'master' of github.com:PX4/Firmware into stack_sweepLorenz Meier2014-05-152-21/+22
|\| |
| * | dataman: Fix doxygen, no functional changesLorenz Meier2014-05-152-21/+22
| |/
* / reduce stack size of dataman start handlerLorenz Meier2014-05-141-0/+2
|/
* Proper data manager restart handlingJean Cyr2014-04-282-10/+28
| | | | | | | | | | | 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.
* Reduce data manager SD card wear and tearJean Cyr2014-04-222-3/+18
| | | | | | | | | | | | | | | | | | | | | When the data manager was first designed each file record contained a 2 byte header and an 126 byte data section, resulting in a record length of 128 bytes. Along the way it was decided to add 2 spare bytes to the record header, but regrettably the data section was not correspondingly reduced in size so we end up with a record length of 130 bytes. This is bad since it does not align with SD card flash sectors and results in more erase/write flash cycles than necessary thus reducing the SD cards life. This update reduced the data section of the data manager to 124, resulting in an optimal record length of 128 bytes. In order to avoid the reuse of data previously written data in the old format, which could result in catastrophic misinterpretation, the data manager file is checked at startup. If it is found to be in the old format, it is deleted and recreated with in the new record length. In this case previously stored data is lost, but that is far safer than the unpredictable result of using the old file.
* Coding styleJean Cyr2014-03-231-7/+13
| | | | astyle according to http://pixhawk.org/dev/code_style
* Remove uneccesary dependencies and update creditsJean Cyr2014-03-232-12/+4
|
* Optimize and update data manager docsJean Cyr2014-02-021-70/+108
| | | | | | | Move repeated code to common function Update missing and misleading comments Fix data manager test compile errors No functional changes
* Waypoints/Navigator: Use two different dataman storage places, keep old ↵Julian Oes2013-12-252-3/+6
| | | | waypoints until all new ones are written
* prevent dataman from blocking startup when no sd card is presentThomas Gubler2013-12-241-2/+4
|
* Datamanager: Rename mavlink/offboard keyJulian Oes2013-12-162-3/+3
|
* Dataman: Also reserve space for onboard missionsJulian Oes2013-12-162-2/+5
|
* Dataman: Some minor fixesJulian Oes2013-12-032-12/+9
|
* Add data manager module and fence support to navigatorJean Cyr2013-11-033-0/+897
- Add function to geo.c to determine if global position is inside fence - Add navigator support/commands for maintaining fence coords. - Add data manager module to support persistence fence storage. Can store other data, but only used for fence at this time. - Add unit tests for data manager