Andrew Tridgell
e234844905
RC_Channel: fixed example sketch
2015-06-01 18:05:50 +10:00
Andrew Tridgell
6c1c2dd8bd
RC_Channel: convert example from .pde to .cpp
2015-06-01 17:07:08 +10:00
Randy Mackay
b121d83beb
RC_Channel: add EPM, LandingGear to FUNCTION param description
2015-05-27 18:05:01 +09:00
Randy Mackay
1b13250fd8
RC_Channel: small parameter description change
2015-05-14 10:33:08 +09:00
Andrew Tridgell
fa688a7b14
RC_Channel: fix for HAL_SITL rename
2015-05-05 09:45:57 +10:00
Randy Mackay
5b15c07d47
RC_Channel: fix example sketch
2015-05-01 21:02:57 +09:00
Andrew Tridgell
6959cdbf15
RC_Channel: fixed usage of _reverse to be consistent
...
users could set RCn_REV to 0 and get very confusing results
2015-02-18 12:47:56 +11:00
Robert Lefebvre
4935a42054
RC_Channel_Aux: Add new landing gear control to Aux_servo_function_t enum.
...
Conflicts:
libraries/RC_Channel/RC_Channel_aux.h
2015-01-07 11:58:17 +09:00
Andrew Tridgell
86bf02d64c
RC_Channel: update example sketch to copy input to output
2014-12-02 16:27:33 +11:00
Kirill A. Kornilov
33e4f44434
RC_Channel: added set_radio_trimmed()
...
take into account trim value in set_radio()
2014-11-25 08:19:27 +11:00
Randy Mackay
73f3b50e2f
RC_Channel: make get_control_mid const
2014-11-17 18:16:12 -08:00
Jonathan Challinger
9375fc8947
RC_Channel: add get_control_mid function
2014-11-17 18:16:09 -08:00
Jonathan Challinger
4d7988b302
RC_Channel: replace long with int32_t
2014-11-17 18:16:08 -08:00
Andrew Tridgell
6b0c15b70f
RC_Channel: added norm_input_dz()
...
normalised input, taking into account dead zone
2014-11-18 12:44:05 +11:00
Andrew Tridgell
2270a904ce
RC_Channel: make flaperson range from -4500 to 4500
2014-11-14 11:23:52 +11:00
Andrew Tridgell
16fd113020
RC_Channel: added channel_function()
...
this is used in the plane mixing code
2014-11-07 10:39:07 +11:00
Randy Mackay
79f95efb71
RC_Channel_aux: add epm to servo function enum
2014-09-17 21:13:30 +09:00
Andrew Tridgell
e1a13edf3d
RC_Channel: fixed example build
2014-08-13 22:12:30 +10:00
Andrew Tridgell
2e5913df93
RC_Channel: fixed k_manual for set_servo_limit()
...
this allows for failsafe takeover of k_manual channels, which fixes
the behaviour for ignition failsafe
2014-08-09 22:50:14 +10:00
Andrew Tridgell
0d4985079e
RC_Channel: added support for LimitValue settings
...
this allows you to set a channel failsafe or radio_out to a limit
value
2014-04-21 11:52:41 +10:00
Andrew Tridgell
7f4178d967
RC_Channel: added setup_failsafe_trim_all() function
...
sets all channels to output trim values on FMU failure
2014-04-21 08:37:24 +10:00
Randy Mackay
8600b9d4f1
RC_Channel: add parachute_release to function enum
2014-04-07 13:36:33 +09:00
Andrew Tridgell
11f196318e
RC_Channel: added static functions to simplify operations on all channels
...
this avoids vehicle code having to loop over all channels for common
operations
2014-04-03 12:18:56 +11:00
Andrew Tridgell
8c0c9c317e
RC_Channel: prevent a numerical exception with bad mount parameters
2014-03-26 17:38:27 +11:00
Andrew Tridgell
6039eab442
RC_Channel: support up to 12 aux channels on PX4
...
this allows RC13 and RC14 to work correctly as aux outputs on Pixhawk
2014-03-25 15:42:48 +11:00
Andrew Tridgell
68462025ba
RC_Channel: constrain norm_input() to -1 to 1
...
if RC is not properly calibrated we could get a value beyond 1, which
could cause some flight modes to exceed the roll/pitch limits of the
aircraft
2014-03-15 20:43:13 +11:00
Andrew Tridgell
dd502e98b4
RC_Channel: added support for separate wheel steering channels on planes
2014-03-05 12:57:50 +11:00
Andrew Tridgell
a788405c8b
RC_Channel: added percent_input() function
...
useful for plane flaps
2014-03-05 09:17:50 +11:00
Mike McCauley
be34e0358a
RC_Channel: Removed duplicate defines from RC_Channel.h
2014-03-03 06:34:34 +11:00
Andrew Tridgell
e11ada7bf0
RC_Channel: fixed comment on enable_aux_servos()
...
thanks to Mike McCauley for spotting
2014-02-18 09:25:07 +11:00
Andrew Tridgell
00d2d5946c
RC_Channel: added disable_aux_channel()
...
this will be used by copter to ensure motor channels are not enabled
for aux functions
2014-02-06 21:30:55 +11:00
Andrew Tridgell
b4208c7fc0
RC_Channel: added flaperon1 and flaperon2 function outputs
2014-02-06 12:35:32 +11:00
Andrew Tridgell
698736b66d
RC_Channel: simplify the setup of aux channels
...
avoid the nasty mess of #if lines, as the info is in the constructor
anyway
2014-02-06 10:17:16 +11:00
Andrew Tridgell
f6d888e0da
RC_Channel: added disable_out() method
2013-12-20 11:58:53 +11:00
Andrew Tridgell
e245bb07c2
RC_Channel: improved docs for RCn_FUNCTION=0
2013-12-16 11:17:26 +11:00
Randy Mackay
f8e2947823
RC_Channel: parameter @Units to pwm
2013-11-26 22:34:28 +09:00
Randy Mackay
330687a754
RC_Channel: formatting
2013-10-31 15:23:52 +09:00
Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
2013-08-30 13:01:39 +10:00
Andrew Tridgell
a12991923e
RC_Channel: prevent overwrite of memory on high RC_Channel constructor
2013-08-18 11:42:23 +10:00
Randy Mackay
e4ca7d2fdf
AC_Sprayer: first implementation
2013-08-05 21:11:09 +09:00
Andrew Tridgell
fef6a76078
RC_Channel: rename 'Manual' to RCPassThru
...
this should make it clearer what it does
2013-07-26 16:07:00 +10:00
Andrew Tridgell
21859f9364
RC_Channel: fixed dead_zone for range channels
...
The dead_zone was being used inconsistently, used in PWM space in one
place, and in control output space in another.
The fix required us to move the index number of the RC channel eeprom
value for RCn_DZ, as users will have a throttle deadzone of 3 set in
their eeprom due to a bug that Randy just fixed that caused the value
to always be saved to eeprom. In plane we then need to fix the
deadzone for the throttle to be 30
this fixes issue #303
Thanks to Soren Kuula for spotting this!
2013-07-13 13:18:54 +10:00
Randy Mackay
fb5ada38c0
RC: example sketch uses set_default_dead_zone
2013-07-12 11:44:58 +09:00
Randy Mackay
47437b9ddf
RC: set dead zone only if parameter has not been set by user
2013-07-12 11:44:16 +09:00
Andrew Tridgell
6b7b69a048
RC_Channel: added secondary rudder support
...
this is used when nose wheel steering needs different reverse/range
from rudder
2013-06-29 17:31:03 +10:00
Andrew Tridgell
02252b5387
RC_Channel: removed reference to dip switches
2013-06-03 17:49:56 +10:00
Andrew Tridgell
c0058bbb03
RC_Channel: added output_trim() and read() functions
...
these make using rcmap in the plane code easier
2013-06-03 16:23:48 +10:00
Andrew Tridgell
0438952a8b
RC_Channel: removed global rc_ch[] array
...
hide it as a object static instead
2013-06-03 16:23:47 +10:00
Andrew Tridgell
c96ac5edbb
RC_Channel: fixed indent-tabs-mode
2013-05-30 09:48:45 +10:00
Andrew Tridgell
b71f36ee34
RC_Channel: support 8 auxillary RC channels
...
needed for full 12 channel support on PX4
2013-04-25 20:10:53 +10:00