Andrew Tridgell
8deba5f43b
RC_Channel: added set_radio() and set_radio_to_trim() functions
2012-10-31 12:43:53 +11:00
Xichen Shi
f1fd7479bd
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).
2012-10-31 12:43:42 +11:00
Andrew Tridgell
dac569a393
RC_Channel: simplify the example
...
use an array of channels
2012-10-16 15:50:54 +11:00
Andrew Tridgell
bad02cab04
RC_Channel: ensure _reverse is not 0
...
this caused the example to fail
2012-10-16 15:50:29 +11:00
Pat Hickey
5dd12bbe9d
RC_Channel unit test: fixed build, functionality still wrong
2012-10-15 10:37:29 -07:00
Andrew Tridgell
1b793bf3f4
RC_Channel: don't force radio_out in enable_aux_servos()
...
this is called regularly, and causes the servo to twitch
2012-09-20 17:34:32 +10:00
Andrew Tridgell
08cf9823fd
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
2012-09-16 15:50:13 +10:00
Andrew Tridgell
644b3c6e17
RC_Channel: support channel reversal on range channels
...
this makes it possible to have a reverse throttle in ArduPlane
2012-09-16 15:06:26 +10:00
Andrew Tridgell
89dc79fded
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
2012-09-08 15:12:28 +10:00
rmackay9
20936fb87d
RC_Channel_aux: bug fix which could cause channel to be assigned to the wrong function and miss others
2012-09-02 12:46:04 +09:00
uncrustify
0f0811d597
uncrustify libraries/RC_Channel/RC_Channel_aux.h
2012-08-21 19:04:32 -07:00
uncrustify
bb484e81e3
uncrustify libraries/RC_Channel/RC_Channel.h
2012-08-21 19:04:31 -07:00
uncrustify
9d22cec882
uncrustify libraries/RC_Channel/RC_Channel_aux.cpp
2012-08-21 19:04:31 -07:00
uncrustify
79e1b84b4f
uncrustify libraries/RC_Channel/RC_Channel.cpp
2012-08-21 19:04:31 -07:00
uncrustify
a3e1c70801
uncrustify libraries/RC_Channel/examples/RC_Channel2/RC_Channel2.pde
2012-08-21 19:04:31 -07:00
uncrustify
f48571cb5d
uncrustify libraries/RC_Channel/examples/RC_Channel/RC_Channel.pde
2012-08-21 19:04:31 -07:00
Amilcar Lucas
f103d375c9
RC_Channel_aux: cycle thru all functions except k_none and k_nr_aux_servo_functions
...
Probably makes no difference because g_rc_function[k_none] == NULL
2012-08-11 13:43:21 +02:00
Amilcar Lucas
1683f18bff
Allow fully independent operation of two AP_Mount instances
2012-08-08 23:11:23 +02:00
Andrew Tridgell
e9d0ae3e7f
AP_Param: update remaining libraries for new constructor syntax
2012-08-08 12:11:57 +10:00
Amilcar Lucas
36bcd827b4
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!
2012-08-05 23:48:57 +02:00
Amilcar Lucas
fe4713b46e
RC_Channel: Allow each channel to know who they are, this simplifies the enabling and output function calls.
2012-08-05 23:08:31 +02:00
Amilcar Lucas
f3f89004e9
More work on ch9, 10 and 11
2012-08-04 19:44:41 +02:00
Amilcar Lucas
431ed1c9b9
More flexible RC support
2012-08-04 18:39:20 +02:00
Amilcar Lucas
13fb2e6dc9
RC_Channel parameters: Fix a typo
2012-07-18 22:39:49 +02:00
Amilcar Lucas
dea5b88379
Support up to 7 aux servo outputs
2012-07-18 21:58:22 +02:00
Amilcar Lucas
8acc432084
Replace long with int32_t
2012-07-18 02:12:31 +02:00
Amilcar Lucas
f5c2ffca34
Use ascending order in the values
2012-07-18 02:11:49 +02:00
Amilcar Lucas
23f009f665
Improve parameter documentation, it still does not work, but is an improvement.
...
I just do not understand why these parameters do not appear in Mission planner :(
2012-07-17 23:32:30 +02:00
rmackay9
3b9a1d4305
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.
2012-07-15 16:28:53 +09:00
Amilcar Lucas
eb647b5320
AP_Mount: add support for non-spring-loaded joysticks
2012-07-11 00:07:33 +02:00
Amilcar Lucas
ad60fac863
RC_Channel: improve parameter documentation
2012-07-11 00:07:10 +02:00
Amilcar Lucas
a79f55656a
RC_Channel: Improve documentation
2012-07-07 21:57:30 +02:00
Amilcar Lucas
8400bd67f8
Remove unused function
2012-07-05 00:33:10 +02:00
Amilcar Lucas
cd0411ba33
Add linebreaks to increase readability.
2012-06-21 00:36:10 +02:00
Amilcar Lucas
be6923be0f
Improve parameters descriptive text
2012-06-21 00:20:37 +02:00
Amilcar Lucas
1ead5f1690
Documentation improvements, no functional changes (only comments)
2012-06-17 22:53:54 +02:00
Amilcar Lucas
a12cb8fd9a
Added camera trigger functionality
2012-06-13 21:00:20 +02:00
Amilcar Lucas
f7ef60565e
Add "3 axis camera stabilization" and "point camera to 3D point" functionality
...
Patch by Gregory Fletcher and reviewed by me
2012-06-13 20:55:19 +02:00
rmackay9
3246f2bad3
RC_Channel library: change all "int" types to "int16_t".
...
Fixes SITL compile error due to type mismatch of set_pwm between .h and .cpp file (this only occurs because on the SITL, "int" is actually "int32_t"
2012-06-02 14:20:58 +09:00
rmackay9
37e4637c13
RC_Channel.pde: fixed compile errors so that it actually works!
2012-06-02 14:00:44 +09:00
Jason Short
477aa6e47a
RC_Channel fix for throttle output.
...
throttle was outputting incorrectly and allowing the user to max out the throttle leaving nothing for attitude control
2012-05-31 14:59:03 -07:00
Jason Short
7ee38df5a2
Issue 416: RC_Channel – Fix to make dead_zones still output 0
2012-05-31 12:05:47 -07:00
Jason Short
2cc9fde3c9
removed never used filter, and fixed a constrain that could make range calcs go bad
2012-05-31 11:45:07 -07:00
Jason Short
00cabc6343
Channel rage fix - low output was always 0 vs _low
2012-05-31 11:31:48 -07:00
rmackay9
3cbd172ea9
RC_Channel - fixed small compiler warning
2012-02-29 22:44:29 +09:00
Jason Short
669e8e34ea
added a limit to range output
2012-02-18 21:08:17 -08:00
Andrew Tridgell
7ba65aecf3
RC_Channel_aux: fixed a uninitialied variable error, and save a bit of stack space
2012-02-15 08:50:45 +11:00
Andrew Tridgell
c497ad9b7e
fixed dead zone load/save
2012-02-13 16:22:53 +11:00
Andrew Tridgell
c6b6898266
RC_Channel_aux: catch invalid function settings
...
a bad function setting would overwrite the heap
2012-02-13 16:22:53 +11:00
Andrew Tridgell
6cf7015859
added indexes to group info structures
2012-02-13 16:22:52 +11:00