Andrew Tridgell
47803e73e4
AP_Param: allow for dynamic var_info tables
...
this allows the var_info entry in a table to be a constant pointer,
allowing the selection of a type for a parameter class at runtime.
8 years ago
Peter Barker
c93942695f
AP_Param: load parameters from a comma-separated-list
...
This patch will break things for anyone who is using
a comma in their filenames for their ardupilot defaults
files.
8 years ago
Peter Barker
fe189fefbc
AP_Param: Factor load_defaults_file (NFC)
8 years ago
Andrew Tridgell
79b0c856b2
AP_Param: added support for frame specific parameters
...
this allows for libraries that have parameters that are only activated
on particular frame types
8 years ago
Lucas De Marchi
85eadca7ad
AP_Param: shut up float comparison warning
...
We want to compare the value previously set in memory.
8 years ago
Andrew Tridgell
4687785185
AP_Param: fixed a bug in default file handling
...
this fixes a bug in how default file values are handled that affects
any common sub-objects. When we had a default value for something like
SERVO12_FUNCTION then configured_in_defaults_file() would return true
for SERVO1_FUNCTION as it shares a common default value pointer
this changes the implementation to use the object pointer instead
8 years ago
Peter Barker
a481e52861
AP_Param: make configured() const
8 years ago
Andrew Tridgell
d005cbffd8
AP_Param: added convert_parent_class()
8 years ago
Andrew Tridgell
05e9462a9c
AP_Param: added CONVERT_FLAG_REVERSE and CONVERT_FLAG_FORCE
8 years ago
Andrew Tridgell
0c32178d07
AP_Param: added reload_defaults_file()
...
this allows defaults to be set for parameters in pointer objects
8 years ago
Andrew Tridgell
0d6801fbe6
AP_Param: added find_old_parameter() method
...
allows for custom conversion of parameters
8 years ago
Andrew Tridgell
be9ac273ce
AP_Param: apply notify check to AP_ParamV too
...
thanks to Francisco
8 years ago
Andrew Tridgell
eaa68f32e3
AP_Param: avoid a notify if value is already correct
8 years ago
Francisco Ferreira
a3fcebc501
AP_Param: add set_and_notify to vectors
8 years ago
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
8 years ago
Peter Barker
2bd13af43d
AP_Param: unhide groups when generating parameters in autotest
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
68f0777dac
AP_Param: fixed bug with deeply nested parameter trees
...
enumeration could loop forever if the IDs overlapped due to 8 bit
masking
8 years ago
Lucas De Marchi
e6d5bac527
AP_Param: don't used reserved word in macros
...
`class` is a reserved word and should not be used as macro arguments.
It's very common in C++ to use "clazz" instead in these cases.
8 years ago
Andy Little
0d113b265c
Examples: fix examples for px4
...
The change to use AP_BoardConfig messed up the examples. Here are some
updated but there are plenty more to do.
8 years ago
Francisco Ferreira
af6d8e3c36
AP_Param: explicitly cast to float to avoid Clang warning
...
/home/travis/build/ArduPilot/ardupilot/libraries/AP_Param/AP_Param.h:542:22: warning: using floating point absolute value function 'fabsf' when argument is of integer type [-Wabsolute-value]
bool force = fabsf(_value - v) < FLT_EPSILON;
9 years ago
Ricardo de Almeida Gonzaga
5bd034a5a8
Global: start using cmath instead of math.h
9 years ago
Andrew Tridgell
86416e8f05
AP_Param: added set_default_by_name()
9 years ago
Andrew Tridgell
0530af93aa
AP_Param: allow top level parameters to be pointers
...
this will allow for the attitude_control variable in quadplane to be a
pointer
9 years ago
Andrew Tridgell
7d92202db9
AP_Param: save flash space for parameter strings
...
now that we no longer need AVR support we can use nul terminated
strings for parameter names, saving a couple of k of flash space
9 years ago
Andrew Tridgell
018c7425a4
AP_Param: added AP_PARAM_NO_SHIFT
...
used for cases where we know the shift is not needed
9 years ago
Randy Mackay
c15fa950c0
AP_Param: convert_old_parameter becomes public and accepts scaling
9 years ago
Andrew Tridgell
12067b27b3
AP_Param: cope with multi-level nesting and zero-idx
...
this copes properly with multi-level nesting of groups, and fixes an
issue with an idx of zero in nested groups
9 years ago
Andrew Tridgell
ff04871fc5
AP_Param: fixed a reporting problem with AP_Vector3f
...
if we load an element other than the X element of a Vector3f via
MAVLink then the value reported back to the GCS would be at the wrong
offset in memory. This led to some very confusing results for users
9 years ago
Andrew Tridgell
93f0707679
AP_Param: added count_parameters() API
...
this auto-clears when an ENABLE parameter changes
9 years ago
Andrew Tridgell
1b8cf84801
AP_Param: allow for up to 512 top level vehicle parameters
...
this will make life a bit easier for copter
9 years ago
Andrew Tridgell
29cb0dcf2c
AP_Param: enable variables to be marked as enable variables
...
used to hide unused subtrees of variables
9 years ago
Andrew Tridgell
37b2e23322
AP_Param: allow objects containing parameters to be dynamically loaded
...
this makes it possible for objects containing parameters to be
dynamically loaded.
9 years ago
Andrew Tridgell
8e4586b4a2
AP_Param: allow for nested groups without subclassing
...
this allows for param tables containing other unrelated objects
9 years ago
Lucas De Marchi
52ef8c10a5
AP_Param: stop using Progmem.h
9 years ago
Andrew Tridgell
e873ff1e5f
AP_Param: copter with vectors when sending parameters
9 years ago
Peter Barker
5f9b1c5f4e
AP_Param: provide facility to notify GCS of param set
9 years ago
Lucas De Marchi
65e719ccc3
AP_Param: replace find_P() with find()
9 years ago
Jonathan Challinger
39246c13ad
AP_Param: add set_default, configured
9 years ago
Grant Morphett
ab35ac41a5
AP_Param: Add parameter to print out all the keys/indexes
...
For some debugging I was working on I needed to see all the token
indexs and group elements.
10 years ago
Gustavo Jose de Sousa
159c5b8b44
AP_Param: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
269f1fd99a
AP_Param: replaced set_param_by_name with set_float
...
read for bugfix in GCS_MAVLink
10 years ago
tcr3dr
41e4c2720d
AP_Param: Explicitly casts AP_CLASSTYPE parameter.
10 years ago
Andrew Tridgell
fb97c16a84
AP_Param: make data pointer const
10 years ago
Tom Pittenger
440438fdda
AP_Param: compiler warnings: apply is_zero(float) or is_equal(float)
...
due to an include cross-dependency between ap_param and ap_math, I punted and reimplemented is_equal() for this one function in the header
10 years ago
Andrew Tridgell
5a755c0400
AP_Param: allow a HAL_PARAM_DEFAULTS_PATH to override defaults
...
this allows a HAL_PARAM_DEFAULTS_PATH to be specified for a build to
override the default parameters for a build. This is useful to build a
firmware that has different default parameters
10 years ago
Andrew Tridgell
5ca38e3d75
AP_Param: added set_param_by_name()
...
this simplifies the GCS_MAVLink code
10 years ago
Andrew Tridgell
ec17c5806e
AP_Param: check parameter tables for bad suffix lengths
10 years ago
Andrew Tridgell
f133f45c3c
AP_Param: convert to using StorageManager
11 years ago
Andrew Tridgell
3474da6c97
AP_Param: added a method for example programs to set parameters in objects
11 years ago