292 Commits (f04f8e226d0f9c2dacf8a7ef0e7b7ce513eca8b3)

Author SHA1 Message Date
DrZiplok 76a5a48206 Add an interface for locating a variable by key. 14 years ago
deweibel@gmail.com 596b33a08b Change waypoint/command storage to include options byte. 14 years ago
tridge60@gmail.com a633617eef added -Wformat in Arduino.mk 14 years ago
tridge60@gmail.com 860998d337 implemented typesafe PSTR() 14 years ago
jasonshort bb715378a1 removed options - not going to go that route without proper GCS support. 14 years ago
jasonshort 852b3874d5 Added Options Bitmask to Location Struct 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 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 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