Andrew Tridgell
54f7aeed83
RC_Channel: extend channel mapping to 16 channels
...
this gives more flexibility, no reason to limit it to 8
9 years ago
Andrew Tridgell
ed2f26d7b8
RC_Channel: allow for pass-thru from low channels to any channel
...
this makes it easier to setup things like ignition cut or bottle drop
with a 8 channel radio
9 years ago
Lucas De Marchi
08cc7b2472
RC_Channel: replace header guard with pragma once
9 years ago
Andrew Tridgell
238e912000
RC_Channel: allow find_channel() to be called early
...
and fix a bug!
9 years ago
Andrew Tridgell
9123ef9f38
RC_Channel: added find_channel() and channel numbers
9 years ago
Andrew Tridgell
6a58264c6b
RC_Channel: added set_aux_channel_default() API
...
this will allow for a default channel for aux functions. Also adds
heli_rsc and heli_tail_rsc functions
9 years ago
Robert Lefebvre
58e918341d
RC_Channel: Add motor_run_enable aux function
9 years ago
Lucas De Marchi
2a91d2169e
RC_Channel: remove check for AVR CPUs
...
Remove the checks for HAL_CPU_CLASS > HAL_CPU_CLASS_16 and
HAL_CPU_CLASS >= HAL_CPU_CLASS_75. Corresponding dead code will be
removed on separate commits.
9 years ago
Gustavo Jose de Sousa
d2780623f7
RC_Channel: 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
Randy Mackay
03a336d496
RC_Channel: update_aux_servo_function made public
10 years ago
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
10 years ago
Kirill A. Kornilov
33e4f44434
RC_Channel: added set_radio_trimmed()
...
take into account trim value in set_radio()
10 years ago
Andrew Tridgell
16fd113020
RC_Channel: added channel_function()
...
this is used in the plane mixing code
10 years ago
Randy Mackay
79f95efb71
RC_Channel_aux: add epm to servo function enum
11 years ago
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
11 years ago
Randy Mackay
8600b9d4f1
RC_Channel: add parachute_release to function enum
11 years ago
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
11 years ago
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
11 years ago
Andrew Tridgell
dd502e98b4
RC_Channel: added support for separate wheel steering channels on planes
11 years ago
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
11 years ago
Andrew Tridgell
b4208c7fc0
RC_Channel: added flaperon1 and flaperon2 function outputs
11 years ago
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
11 years ago
Randy Mackay
330687a754
RC_Channel: formatting
11 years ago
Randy Mackay
e4ca7d2fdf
AC_Sprayer: first implementation
12 years ago
Andrew Tridgell
6b7b69a048
RC_Channel: added secondary rudder support
...
this is used when nose wheel steering needs different reverse/range
from rudder
12 years ago
Andrew Tridgell
c96ac5edbb
RC_Channel: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
b71f36ee34
RC_Channel: support 8 auxillary RC channels
...
needed for full 12 channel support on PX4
12 years ago
Michael
5d91b06de3
RC_Channel: added secondary elevator support
12 years ago
Andrew Tridgell
4aa16303ed
RC_Channel: updates for new AP_Param API
12 years ago
Pat Hickey
afa1143506
RC_Channel: ported to AP_HAL
...
* keeping everyone honest
* remove second unmaintained unit test: No idea wtf is going on in there.
12 years ago
Andrew Tridgell
1059ef2a54
Plane: fixed secondary aileron and manual aux servos in failsafe
...
the servo value wasn't being written to APM_RC while in failsafe for
these aux channels
12 years ago
Andrew Tridgell
d2170230f4
RC_Channel: added aileron_with_input aux function
12 years ago
Andrew Tridgell
024e5c3cc7
RC_Channel: added set_radio() and set_radio_to_trim() functions
12 years ago
Xichen Shi
8c46fced16
APM: Added functionality to use differential spoilers in elevon mode
...
spoiler 1 and 2 are connected to 2 auxiliary channels, functions are
set to 16 on left wing and 17 om right wing respectively. Worked in
FBW + mode (auto etc.). No manual mode supported yet (need more
channels in my case).
12 years ago
Andrew Tridgell
8620a036de
RC_Channel_aux: minor cleanups
...
remove unused enable_out_ch() and enable k_manual channels. This
ensures k_manual channels used for bottle drop are initialised
correctly to trim output
13 years ago
Andrew Tridgell
3b97339104
RC_Channel: simplified RC_Channel_aux and fixed issue 725
...
it is perfectly valid to configure two RC channels with the same
function, especially when that function is manual output (ie. copy
input to output)
This removes the g_rc_function[] indirection array
13 years ago
uncrustify
b1cf3f7f91
uncrustify libraries/RC_Channel/RC_Channel_aux.h
13 years ago
Amilcar Lucas
0b0b9c29a2
Allow fully independent operation of two AP_Mount instances
13 years ago
Andrew Tridgell
518d6365ff
AP_Param: update remaining libraries for new constructor syntax
13 years ago
Amilcar Lucas
107155fa1a
AP_Mount: Allow using any RC channel to control any of the mount axes.
...
This has the added benefit of saving 60 bytes and simplifying Mission Planner gui.
Moved some code from RC_Channel_aux to AP_Mount class
The servos get written by the update_mount_position() function, this simplifies main()
PS: The beauty of using libraries: I did not have to touch a single line of ArduPlane's code!
13 years ago
Amilcar Lucas
b8c7b8a786
RC_Channel: Allow each channel to know who they are, this simplifies the enabling and output function calls.
13 years ago
Amilcar Lucas
22d2f9ea15
Support up to 7 aux servo outputs
13 years ago
Amilcar Lucas
461098b289
Replace long with int32_t
13 years ago
rmackay9
669ffb5ef8
RC_Channel_aux: added enable_out method to help stop servos from moving before the mount has initialised.
...
changed parameter names of "update_aux_servo_function" to make it more clear that any 4 servos can be passed in (not just servos 5~8).
Also allowed NULL servos to be passed in as parameters because we only need 3 in ArduCopter.
13 years ago
Amilcar Lucas
cc02d85cdf
AP_Mount: add support for non-spring-loaded joysticks
13 years ago
Amilcar Lucas
e9c72822dc
Remove unused function
13 years ago
Amilcar Lucas
594cedd324
Documentation improvements, no functional changes (only comments)
13 years ago
Amilcar Lucas
1906e06b69
Added camera trigger functionality
13 years ago
Amilcar Lucas
a32b7c200b
Add "3 axis camera stabilization" and "point camera to 3D point" functionality
...
Patch by Gregory Fletcher and reviewed by me
13 years ago
Andrew Tridgell
12dac42174
modify RC_Channel for AP_Param
13 years ago