Peter Barker
f2b8c9e501
RC_Channel: improve debug when failing to initialise RC channel
7 years ago
Peter Barker
e4d3ed7e39
RC_Channel: move handling of sprayer and gripper in from Copter
7 years ago
Michael du Breuil
e7ebea55d2
RC_Channel: Fix possible user induced out of bounds write
...
CID 308348
7 years ago
Peter Barker
e4ff937c96
RC_Channel: remove min-max-configured pre-arm checks
...
These are really, really expensive to run while your RC isn't
configured.
We now have a split between inputs (RC) and servos (SRV), so these
aren't as critical as they were. We also have range checks to ensure
they're roughly good enough to fly with.
7 years ago
Peter Barker
87e7cc7ef0
RC_Channels: zero all channels before populating
...
Fix for CID 308365
7 years ago
Peter Barker
f2b1387c1c
RC_Channel: add AUTOTUNE to init_aux_function routine
...
Also, cark it in SITL if we fail to initialise an aux function
7 years ago
Peter Barker
ff36eb3aca
RC_Channel: remove old members objects
7 years ago
Peter Barker
5df70cf93a
RC_Channel: update examples for new rc() method
7 years ago
Peter Barker
0f084ed5bf
RC_Channel: add compatability static functions
...
Just to avoid churn in Sub, Plane and Tracker
7 years ago
Peter Barker
747fc3814d
RC_Channel: rename in_rc_failsafe to has_valid_input
7 years ago
Peter Barker
61c34ea98c
RC_Channel: move handling of auxillary switches into RC_Channel
...
RC_Channel: move handling of Rover's functions into RC_Channel
RC_Channel: move auxsw handling for camera to base RC_Channel
RC_Channel: add responsibility for servorelay events
RC_Channel: move mode switch handling to base class
7 years ago
Michael du Breuil
60f19bbf02
RC_Channel: Allow an input to be ignored
7 years ago
Michael du Breuil
16b6201195
RC_Channel: Allow a RC_OVERRIDE_TIMEOUT of -1 to use the overrides
...
forever
7 years ago
Michael du Breuil
95eda5d9b7
RC_Channel: Remove unneeded interfaces
7 years ago
Michael du Breuil
0fcf07fde7
RC_Channel: Remove input() method from individual channels
7 years ago
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