84 Commits (a243039dc1526f1e7b3fbf0c9ab808b926f0f6e3)

Author SHA1 Message Date
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 e2d4c9e901 Use a more explicit loop termination condition. 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@gmail.com 0b60757b43 Add a template AP_VarS that handles arbitrary structure/class types. 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 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 b60480fac0 Minor whitespace fixes. 14 years ago
DrZiplok c18fd76449 Try to pre-empt subsequent inclusions of wiring.h by grabbing it here and giving ourselves a chance to undo some of the less well-advised macros it defines. 14 years ago
DrZiplok@gmail.com 34f43934da Move the unit test framework out of the unit tests. Add unit tests for the k_typeid_* constants. 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 2caea855cd Don't include AP_Vector (in preparation for retirement) and AP_Loop (because it's not being used by APM*). Interested clients can still include AP_Loop if they need it. 14 years ago
DrZiplok@gmail.com 2f263229f9 Rename AP_Meta_class::AP_Type_id to AP_Meta_class::Type_id in keeping with the coding standard. 14 years ago
DrZiplok 8c9ece1f37 Fix a serious typo, add more documentation. 14 years ago
DrZiplok 7a3d33844a Move the Test unit test framework out into its own header, so that it can be used by other libraries. 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 de71731994 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. 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 dd6ede36ee Add more unit tests for AP_Var. 14 years ago
DrZiplok@gmail.com 6366cdc094 Add more documentation for AP_MetaClass. 14 years ago
DrZiplok@gmail.com 44cac7a853 Add a new macro PROGMEM_STRING that can be used to define a constant string in program memory. 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 0e868ca343 More unit tests. 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 d8046957c6 Unit tests for scope-based address offsetting. 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@gmail.com d2bd744244 Metaclass improvements: 14 years ago
DrZiplok 57f3f4e65b Beef up the unit tests for AP_Var. Most of the basic functionality is now covered. 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 ea9c7859f8 Don't allow the default serialize/unserialize to be inlined. 14 years ago
DrZiplok a02136236f Add the ability to find the sketchbook when called from a Makefile in a library example. 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
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
DrZiplok 23e78d0f4b Fix/improve depdendency handling. Deps are autogenerated on the first compile pass and consumed on subsequent builds. This helps work around the difficulty of building the 'clean' target with Eclipse. 14 years ago
DrZiplok 7bc153f038 More awk-related changes. mawk hangs on the parser scripts, so try gawk; it's what we'll need for cygwin anyway. 14 years ago
DrZiplok f0f13752d0 We need TOOLPATH even when ARDUINO is defined. Refactor. 14 years ago