diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-03-08 19:17:56 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-03-08 19:17:56 +0100 |
commit | daab64f9e4288a5357e63867056a86b2f7355aa6 (patch) | |
tree | dc3126cf38046b382f67b78748c6079be6599c04 /src | |
parent | 88cebd3c2acb00a5644f0d279c076b48a6242e9a (diff) | |
download | px4-firmware-daab64f9e4288a5357e63867056a86b2f7355aa6.tar.gz px4-firmware-daab64f9e4288a5357e63867056a86b2f7355aa6.tar.bz2 px4-firmware-daab64f9e4288a5357e63867056a86b2f7355aa6.zip |
Param system: Introduce global parameter version param
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/systemlib/system_params.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/modules/systemlib/system_params.c b/src/modules/systemlib/system_params.c index 497b7da37..17ce65d13 100644 --- a/src/modules/systemlib/system_params.c +++ b/src/modules/systemlib/system_params.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2013 PX4 Development Team. All rights reserved. + * Copyright (c) 2013-2015 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -97,3 +97,15 @@ PARAM_DEFINE_INT32(SYS_RESTART_TYPE, 2); * @group System */ PARAM_DEFINE_INT32(SYS_COMPANION, 0); + +/** +* Parameter version +* +* This monotonically increasing number encodes the parameter compatibility set. +* whenever it increases parameters might not be backwards compatible and +* ground control stations should suggest a fresh configuration. +* +* @min 0 +* @group System +*/ +PARAM_DEFINE_INT32(SYS_PARAM_VER, 1); |