34 Commits (6dbcac855a3e20cb0afb4f2fe7071e12ae949ab2)

Author SHA1 Message Date
James Goppert 77da85648d Clean up formatting for AP_Common 13 years ago
Andrew Tridgell bcc2aed8fb initialise spare bits in AP_Var headers 14 years ago
James Goppert b0a1721199 Added cmake files. 14 years ago
James Goppert d887a28b91 Added ArduBoat/ ArduRover/ and APO library. 14 years ago
James Goppert 71fbdf721a Added APO branch. 14 years ago
tridge60@gmail.com dab8c0cca8 AP_Var: added EEPROM wear levelling 14 years ago
tridge60@gmail.com 06c4f60490 AP_Var: avoid wearing out EEPROM by re-writing the same value 14 years ago
tridge60@gmail.com e099079cc0 AP_Var: fixed a logic bug in APVar::key() 14 years ago
tridge60@gmail.com b8b8b7e8ca AP_Var: fill all of EEPROM with 0xFF on erase_all() 14 years ago
james.goppert 7809b0ca2a Massive warning fixes. 14 years ago
DrZiplok 76a5a48206 Add an interface for locating a variable by key. 14 years ago
tridge60@gmail.com 860998d337 implemented typesafe PSTR() 14 years ago
DrZiplok@gmail.com 5fe288dd43 Fix the return value from ::save() on AP_Var_groups so that the caller can verify that a save was successful. 14 years ago
DrZiplok@gmail.com e85b2d3c17 Increase the maximum save size to 64B, so that a Vector3f can be saved. 14 years ago
DrZiplok@gmail.com 72e112e8c0 Fix AP_Var::load - it has to ask the serialiser, not the unserialiser, for the variable's size. 14 years ago
DrZiplok@gmail.com bffe20ed5e Add a little code to track the amount of memory used by AP_Var subclasses. 14 years ago
DrZiplok@gmail.com fabcfd942b Don't return a name for a variable if it has no name, even if it's in a group that does have a name. 14 years ago
DrZiplok 991acad1f0 Add a constant that can be used to identify groups. 14 years ago
DrZiplok 61d65f652c Fix for log() being a bad idea. 14 years ago
DrZiplok 4632dd2f29 Implement a cast_to_float method for convenience; at a cost of a couple of bytes in the vtable this will save many callers having to play type introspection games. 14 years ago
DrZiplok@gmail.com b58693f203 Add a function to AP_Var for finding a variable by name. It is not efficient, but convenient for e.g. interactive use. 14 years ago
DrZiplok@gmail.com 8cc7e658b0 Simplify AP_Var_group::_serialize_unserialize slightly by removing some variables. 14 years ago
DrZiplok@gmail.com 4b21f3485a Improve performance when saving a number of variables that don't have space allocated in the EEPROM. This avoids scanning the entire EEPROM every time a variable that has not yet had space allocated is written. 14 years ago
DrZiplok@gmail.com 655f7a21ff Fix ::save_all/::load_all so that they check the correct criteria for opt-out. Now load/save_all work. 14 years ago
DrZiplok@gmail.com e7da843d90 Fixes for EEPROM space allocation and mapping. 14 years ago
DrZiplok@gmail.com 39fea200ca I never liked the plan that variable groups could only be statically scoped; it was much too fragile. These changes address that issue by splitting the global variable list into two lists, one for standalone variables (including groups), and one for variables that are members of a group. 14 years ago
DrZiplok@gmail.com 39b718fce0 Implement the missing AP_Var_group::*serialize functions. 14 years ago
DrZiplok@gmail.com 30d9a92c4e Implement a pure data serialisation load/save model for AP_Var. 14 years ago
DrZiplok@gmail.com 96d2dc33fe Formatting and naming changes for conformance with the ArduPilot Coding Conventions. 14 years ago
DrZiplok e299d5f58a Add a flags byte to variables, and implement a "no auto load" bit that opts variables out of load_all / save_all. 14 years ago
DrZiplok c0de571afd Save AP_Var's initial value as a default value, and add a function for restoring the default value. 14 years ago
DrZiplok@gmail.com 63643f73fc Move the AP_Var ctor out of the class definition; it's big enough that we don't want to inline it. 14 years ago
DrZiplok 277105c437 Rename the base class for variables AP_Var; less confusing, less to type. Rename the template type instead. 14 years ago
DrZiplok a3a9fe59e3 Following discussions with James, a complete rewrite of AP_Var. 14 years ago
DrZiplok 68be029a17 Don't define constant AP_Var's extern 14 years ago
james.goppert 634f2734b5 Added AP_Controller library. 14 years ago
DrZiplok@gmail.com 10f3a6f9cb Drop a couple things in here in support of code moving to libraries. 15 years ago