37 Commits (669daa9321958f477ee74445914c8d25579520ea)

Author SHA1 Message Date
tridge60@gmail.com dab8c0cca8 AP_Var: added EEPROM wear levelling 14 years ago
tridge60@gmail.com 9cb9a54d64 fixed a warning in AP_Var.h 14 years ago
DrZiplok f5ba77f23b Rename some ctor arguments to suppress shadow-related warnings. 14 years ago
james.goppert 5a273e52d2 Added const AP_Var access. 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 86ca9562b5 Fix ::set_and_save to return the result of the ::save call. 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 991acad1f0 Add a constant that can be used to identify groups. 14 years ago
DrZiplok@gmail.com 0b60757b43 Add a template AP_VarS that handles arbitrary structure/class types. 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 b614aca274 Add a template AP_VarA that defines a variable that is an array of some basic type. This is like AP_VarT for arrays, with minor changes in behaviour consistent with the difference between regular variables and arrays. 14 years ago
DrZiplok@gmail.com ca0005db2a Comments, minor consting, use a better target for sizeof in AP_VarT 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 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
james.goppert 05622fe225 Updated AP_RcChannel 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 aaf125e441 Based on explaining AP_VarNoAddress to Doug, improve the description of the value. 14 years ago
DrZiplok@gmail.com 6366cdc094 Add more documentation for AP_MetaClass. 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 765cef724d Fix the assignment operator overload for AP_VarT so that direct assignments to the type work correctly. 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
james.goppert 634f2734b5 Added AP_Controller library. 14 years ago
james.goppert 8bc3fc599d Fixed casting issues with EEPROM Registry 14 years ago
james.goppert 86feb8bf7b Fixed issues with RcChannel EEPROM var ownership. 14 years ago
james.goppert e3041f08fe RcChannel now owns channel config params. 14 years ago
DrZiplok faa2b9909e Break AP_Var and friends out into their own header. 14 years ago