ardupilot/libraries/AP_Common
DrZiplok@gmail.com e7da843d90 Fixes for EEPROM space allocation and mapping.
- We can't count on the first EEPROM scan knowing about everything; new variables may be constructed later so be willing to go back and re-scan the EEPROM if we encounter a new variable that hasn't been loaded yet.
- Sort out where _key actually points (the variable's data) in the EEPROM and get everyone to use the same interpretation.
- Fix return values from ::save and ::load.
- Make it possible to re-save after ::erase_all by de-locating all variables before the EEPROM is blown away.
- Fix args to eeprom_read_block/eeprom_write_block so that we don't spam random memory.

Add unit tests for basic save/load operations.


git-svn-id: https://arducopter.googlecode.com/svn/trunk@1532 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-01-23 08:11:53 +00:00
..
examples Fixes for EEPROM space allocation and mapping. 2011-01-23 08:11:53 +00:00
include Added inclusion guard to menu.h 2010-11-28 00:35:59 +00:00
AP_Common.cpp Drop a couple things in here in support of code moving to libraries. 2010-09-11 06:13:28 +00:00
AP_Common.h Add a new macro PROGMEM_STRING that can be used to define a constant string in program memory. 2011-01-10 01:42:59 +00:00
AP_Loop.cpp Added AP_Controller library. 2010-12-31 06:20:28 +00:00
AP_Loop.h Added AP_Controller library. 2010-12-31 06:20:28 +00:00
AP_MetaClass.cpp Formatting and naming changes for conformance with the ArduPilot Coding Conventions. 2011-01-16 09:14:21 +00:00
AP_MetaClass.h Add a templated version of AP_Meta_class::meta_type_id so that you can get a type ID for any named type without having to have an instance of the type lying around. Update the comments about caching type IDs to reflect its availability. 2011-01-23 06:44:07 +00:00
AP_Var.cpp Fixes for EEPROM space allocation and mapping. 2011-01-23 08:11:53 +00:00
AP_Var.h Fixes for EEPROM space allocation and mapping. 2011-01-23 08:11:53 +00:00
AP_Vector.h Added Loop class. 2010-12-24 23:59:10 +00:00
Arduino.mk Add the ability to find the sketchbook when called from a Makefile in a library example. 2011-01-02 22:16:21 +00:00
c++.cpp Added AP_Controller library. 2010-12-31 06:20:28 +00:00
c++.h Updated mavlink added eeprom class. 2010-12-23 23:02:51 +00:00
keywords.txt Add support for 'new' and 'delete', so we can cons things on the fly. 2010-10-17 04:02:06 +00:00
menu.cpp Move the warning controls for APM out to AP_Common. This makes it easier to grab these for libraries uniformly. 2010-11-27 23:27:08 +00:00