mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
Reworked MAVLink parameter interface to support new parameter storage, tested.
This commit is contained in:
@@ -193,6 +193,15 @@ param_for_index(unsigned index)
|
||||
return PARAM_INVALID;
|
||||
}
|
||||
|
||||
int
|
||||
param_get_index(param_t param)
|
||||
{
|
||||
if (handle_in_range(param))
|
||||
return (unsigned)param;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
const char *
|
||||
param_name(param_t param)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user