mirror of https://github.com/ArduPilot/ardupilot
1a2ce433e1
Now a variable belonging to a group can safely be constructed before the group it belongs to, and the group can be destroyed before its member variables. This greatly simplifies the AP_Var constructor(s). Remove the lookup-by-index and lookup-by-key interfaces to AP_Var and replace them with first/next interfaces for all variables, and for variables belonging to a specific group. Document their usage. Add an accessor for the key associated with a variable so that search-by-key can be performed by a consumer. Throw away the lookup cache implementation, as it's not required anymore. Re-layout the EEPROM variable header and tweak the EEPROM space allocator so that it's more resistant to interruptions during variable save. Fix the global constants so that they work. Add an interface for erasing all variables in EEPROM (only writes one byte). Fix unit tests so that they work with the changed interfaces. Also tweak the unit test framework so that it doesn't inline all its code. This is a WIP - many more tests need to be written still. git-svn-id: https://arducopter.googlecode.com/svn/trunk@1531 f9c3cf11-9bcb-44bc-f272-b75c42450872 |
||
---|---|---|
.. | ||
examples | ||
include | ||
AP_Common.cpp | ||
AP_Common.h | ||
AP_Loop.cpp | ||
AP_Loop.h | ||
AP_MetaClass.cpp | ||
AP_MetaClass.h | ||
AP_Var.cpp | ||
AP_Var.h | ||
AP_Vector.h | ||
Arduino.mk | ||
c++.cpp | ||
c++.h | ||
keywords.txt | ||
menu.cpp |