Andrew Tridgell
cd430cb6a8
RC_Channel: added no_deadzone version of set_pwm()
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
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
12 years ago
rmackay9
49619b15dd
RC_Channel: move RC_CHANNEL_ANGLE, RANGE, ANGLE_RAW type definitions to .h file so they can be used by the main sketch
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
f58abb7550
RC_Channel: added pwm_to_angle_dz() function
...
will be used by k_aileron in APM
12 years ago
Andrew Tridgell
d57566ad0e
RC_Channel: removed set_filter() and scale_output
...
these unused options were costing 5 bytes per channel, for a total of
50 bytes on ArduCopter
12 years ago
Andrew Tridgell
86b509a609
RC_Channel: ensure _reverse is not 0
...
this caused the example to fail
12 years ago
uncrustify
5564e0c440
uncrustify libraries/RC_Channel/RC_Channel.h
13 years ago
Andrew Tridgell
518d6365ff
AP_Param: update remaining libraries for new constructor syntax
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
rmackay9
c3b1a79f6a
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"
13 years ago
Jason Short
c2d14a5cad
RC_Channel fix for throttle output.
...
throttle was outputting incorrectly and allowing the user to max out the throttle leaving nothing for attitude control
13 years ago
rmackay9
82f81295a7
RC_Channel - fixed small compiler warning
13 years ago
Andrew Tridgell
84aef17bb0
fixed initialisation of RC_Channel class
13 years ago
Andrew Tridgell
12dac42174
modify RC_Channel for AP_Param
13 years ago
Pat Hickey
c9f7618ccc
purple: rework the RC_Channel library for the APM_RC changes
13 years ago
Jason Short
76bf784f8c
RC_Channel Dead zone
...
Added APVar dead_zone to the RC_Channel library so you could edit it in the Mission planner
Made CH filtering off by default.
13 years ago
Jason Short
326cfef808
Dead Zone fix - Now the range is full instead of clipped. Should make the Yaw much more smooth.
14 years ago
Jason Short
cd72e6bea9
roughed in an expo option idea
...
made min and max values 1100, 1900
removed hard coded init for camera values
14 years ago
Amilcar Lucas
f08cea8044
These changes were meant to be inside commit a14c06adc06b. I'm sorry but reverting stuff is not that easy
14 years ago
Amilcar Lucas
5406991831
Added support for routing any function to any of the aux. servos.
...
This is a manual merge from the APM_Camera branch.
It reverts the stuff that Oliver did not menat to do with his commit 6dcbc7f44bc0
14 years ago
Amilcar Lucas
77c798abd5
Use G_RC_AUX macro to simplify accessing the auxiliary servos
14 years ago
Amilcar Lucas
46f9d4cec8
This is ugly, but it fixes compilation on arduino
14 years ago
Amilcar Lucas
213969202a
Moved the RC_Channel_aux class to its own file. The includes could be improved, has anyone got any ideas how ?
14 years ago
Amilcar Lucas
dd19a7302d
I do not understand this, but it looks like it needs int8 here
14 years ago
Amilcar Lucas
d84f80cb0d
Moved enum values around to make code simpler to read and use
14 years ago
Amilcar Lucas
386e80eaf6
Added comments and TODO
14 years ago
Amilcar Lucas
f4998c3673
Moved a function from radio.pde to the RC_Channel_aux library. Now its more readable and reusable
14 years ago
Amilcar Lucas
b7a0d8836a
This is the real HEAD of the APM_Camera branch. Seams that lots of changes got lost in the SVN to GIT port
14 years ago
rmackay9@yahoo.com
499cbec9e5
RC_Channel.h - small change to store _reverse setting to eeprom
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2528 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
8f82de3e11
changed a bool to uint8_t
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2120 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
a67b1d6896
Added new output type AMGLE_RAW - this will ouput non-scaled PWM, better for copters than fixed wings.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2093 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
DrZiplok
701157c350
Re-order class members to avoid initializer-order warnings.
...
14 years ago
tridge60@gmail.com
860998d337
implemented typesafe PSTR()
...
This makes PSTR() type safe by using a 1 byte wrapper
structure. Attempts to use the wrong varient of a print function will
generate a compilation error.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1797 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
DrZiplok@gmail.com
c52b459a53
Variable names must be PROGMEM strings.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1655 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
DrZiplok@gmail.com
1dd50ec263
Use AP_Var to store channel calibration.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1651 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
deweibel@gmail.com
3443a7817d
Add reversing for PWM outputs in angle_to_pwm case.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1566 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
deweibel@gmail.com
50c3b2e4fd
Add initial values for scaling and dead zone to RC_Channel constructor
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1506 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
7dd1b3cbe7
removed EEPROMB references
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1314 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
68eec6805a
update use EEPROM class, new scaled input for RC_Channel
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1264 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
24bb547eae
Added some functionality to RC_Channel to meet APM needs.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1223 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
e194e2fa75
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1118 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
4ef6bd673f
added trim save
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@980 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
44f2139951
added filter option
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@969 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
59a3087cb6
added control / nav mixing
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@944 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
dc16a2961d
git-svn-id: https://arducopter.googlecode.com/svn/trunk@926 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
2dd479ea62
almost ready for use, still testing
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@905 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort@gmail.com
4fa2491adf
This is a new Library for managing RC input channels which will replace the current way of storing RC input in Arrays and most of the Radio.pde tab
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@902 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago