Michael du Breuil
4253c7f74d
RC_Channel: Move overrides out of the HAL
7 years ago
Michael du Breuil
c8a93f9b76
RC_Channel: Remove set_overrides() method
7 years ago
Michael du Breuil
30554d0de0
RC_Channels: Collapse has_new_input() with set_pwm_all()
7 years ago
Michael du Breuil
c8fdb90ab5
RC_Channel: Rework set_pwm_no_deadzone() to a recompute function
7 years ago
Michael du Breuil
a6afc69c13
RC_Channel: Support most hal.rcin functions in RC_Channels
7 years ago
Andrew Tridgell
ac4017e2ae
RC_Channel: added set_and_save_radio_trim()
...
# Conflicts:
# libraries/RC_Channel/RC_Channel.h
7 years ago
Andrew Tridgell
e5813effff
RC_Channel: improved efficiency of min_max_configured
...
this is quite a costly function due to scan in AP_Param. It takes
about 4 to 5 milliseconds when done as part of AP_Arming
7 years ago
Andrew Tridgell
0155434057
RC_Channel: fixed bug in manual with TRIM == MIN
...
This fixes the bug described here:
https://discuss.ardupilot.org/t/arduplane-reverse-thrust-setup/18324/5
which otherwise would prevent output with TRIM == MIN or TRIM == MAX
8 years ago
Andrew Tridgell
64f722876f
RC_Channel: use set_and_save_ifchanged
8 years ago
Andrew Tridgell
b50ab75f4c
RC_Channel: added set_and_save_trim()
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
ed07d5b5c9
RC_Channel: Improve the PWM parameters descriptions
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
8661bdda8a
RC_Channel: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
8 years ago
Pierre Kancir
90661c528a
RC_Channel: example fix travis warning
...
missing function declaration
implicit cast
some style fix
8 years ago
Andrew Tridgell
d6d94bd26c
RC_Channel: improved doc string
8 years ago
Andrew Tridgell
11afd0c7d4
RC_Channel: split RC_Channels.cpp out to separate cpp file
...
this is needed for automatic parameter documentation generation
8 years ago
murata
836c8aa684
RC_Channel: Unify from print or println to printf.
8 years ago
Peter Barker
d2b2ddcb02
RC_Channel: make min_max_configured const
8 years ago
Andrew Tridgell
77a7e7ca01
RC_Channel: give access to internals to SRV_Channel
...
needed for parameter upgrade
8 years ago
Andrew Tridgell
b6aa4205b4
RC_Channel: cleanup API and comments a bit
8 years ago
Andrew Tridgell
0791186cd2
RC_Channel: split SRV_Channel into separate directory
8 years ago
Andrew Tridgell
64aa13e7f4
RC_Channel: 2nd stage of SRV_Channels conversion
...
allow for 16 output channel objects
8 years ago
Peter Barker
319cfa766b
RC_Channel: add method to get current radio out for a function
8 years ago
Peter Barker
7200692137
RC_Channel: make EPM a subclass of AP_Gripper_Backend
8 years ago
Peter Barker
d2e798d549
RC_Channel: alias k_epm to k_kgripper
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
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
f9dd31b6e5
RC_Channel: support automatic servo trimming
8 years ago
Andrew Tridgell
992bf2368e
RC_Channel: cope with SERVO_RNG_ENABLE changing while booted
...
this prevents a one second throttle up on scaled ESCs when
enabling/disabling the servo output mapping
8 years ago
Andrew Tridgell
4a9ddf52e0
RC_Channel: constrain output to servo range
...
don't allow servos past configured range in any mode
8 years ago
Andrew Tridgell
2ceddddd3b
RC_Channel: don't call output() in SRV_Channel
...
we may need to run another mixer
8 years ago
Andrew Tridgell
78ef3b77c6
RC_Channel: added disable_passthrough() method
8 years ago
Andrew Tridgell
2ec439d7e3
RC_Channel: added set_esc_scaling() to SRV_Channels
8 years ago
Andrew Tridgell
73b9123495
RC_Channel: added set_trim() API to SRV_Channels object
8 years ago
Andrew Tridgell
c7f8b255e7
RC_Channel: added SRV_Channels object for remapping output channels
...
this allows for decoupling RC input ranges from servo output ranges
8 years ago
Andrew Tridgell
fea7903aa8
RC_Channel: added get_radio_out_normalised()
8 years ago
Andrew Tridgell
96c7d9dde8
RC_Channel: make output_trim() go via _radio_out
...
this ensures that _radio_out always contains the value that would be
output to the channel. This will be used by the SRV_Channels object
8 years ago
Lucas De Marchi
ae53920e5b
build: don't build examples with old build system
...
We currently check examples are buildable with waf which doesn't need
the libraries to be specified in a make.inc file. Having the makefiles
there is misleading since people try to build and realize the build is
broken.
8 years ago
Andrew Tridgell
38fff6d43d
RC_Channel: expanded docs for RCn_FUNCTION
9 years ago
Andrew Tridgell
62f3818b83
RC_Channel: added k_throttle
...
for secondary throttle on planes
9 years ago
Andrew Tridgell
be2b6e47aa
RC_Channel: added output types for choke, ignition and starter
9 years ago
Andrew Tridgell
7ea68f8f80
RC_Channel: fixed function indexes above 64
9 years ago
Andrew Tridgell
3377714300
RC_Channel: fixed typo
9 years ago
Andrew Tridgell
934d2b6ae4
RC_Channel: added setup_failsafe_trim_mask()
9 years ago
Andrew Tridgell
120564f094
RC_Channel: set_radio() should not constrain values
...
caller is supplying direct PWM value. The MIN/MAX should not apply
9 years ago
Andrew Tridgell
4e3dd315cb
RC_Channel: fixed double channel assignment
...
this fixes RC_Channel_aux::set_aux_channel_default from assigning
k_heli_rsc twice, once at default channel and once at user designated
channel
9 years ago
Andrew Tridgell
2094cb2d88
RC_Channel: fixed example for MAVLink2
9 years ago
Ricardo de Almeida Gonzaga
099fc69032
RC_Channel: Fix typos
9 years ago
Andrew Tridgell
a41ffc176c
RC_Channel: added motor tilt auxillary channel
9 years ago
skyscraper
c0c8f1a5cc
RC_Channel: RC_Channel refactor
...
Fix up RC_Channel examples.
Change direct access to data members
to access via member functions
9 years ago
skyscraper
d16659331f
RC_Channel_aux: Rename static member functions
...
Further to refactor of RC_Channel class which included
adding get_xx set_xx methods, some methods names are now
in conflict with those in the derived RC_Channel_aux class.
To keep a uniform naming convention in RC_Channel where
functions are most used and most numerous, the offending
functions in RC_Channel__aux are renamed as follows
RC_Channel_aux::set_radio_trim(Aux_servo_function_t function)
to RC_Channel_aux::set_trim_to_radio_in_for(Aux_servo_function_t function)
RC_Channel_aux::set_servo_out(Aux_servo_function_t function, int16_t value)
to RC_Channel_aux::set_servo_out_for(Aux_servo_function_t function, int16_t value)
Rationale:
RC_Channel is a complicated class, which combines
several functionalities dealing with stick inputs
in pwm and logical units, logical and actual actuator
outputs, unit conversion etc, etc
The intent of this PR is to clarify existing use of
the class. At the basic level it should now be possible
to grep all places where private variable is set by
searching for the set_xx function.
(The wider purpose is to provide a more generic and
logically simpler method of output mixing. This is a small step)
9 years ago