Reworked MAVLink parameter interface to support new parameter storage, tested.

This commit is contained in:
Lorenz Meier
2012-08-20 09:07:33 +02:00
parent 4a7f92fad0
commit 2c8fafd12a
5 changed files with 186 additions and 104 deletions
+8
View File
@@ -102,6 +102,14 @@ __EXPORT unsigned param_count(void) __attribute__((const));
*/
__EXPORT param_t param_for_index(unsigned index) __attribute__((const));
/**
* Look up the index of a parameter.
*
* @param param The parameter to obtain the index for.
* @return The index, or -1 if the parameter does not exist.
*/
__EXPORT int param_get_index(param_t param) __attribute__((const));
/**
* Obtain the name of a parameter.
*