Andrew Tridgell
a093926b04
Revert "RC_Channel: removed pwm_out variable from RC_Channel"
...
This reverts commit 8e4a003d8d
.
It is used by MotorsMatrix
12 years ago
Andrew Tridgell
8e4a003d8d
RC_Channel: removed pwm_out variable from RC_Channel
...
saves 16 bytes
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
Andrew Tridgell
cd430cb6a8
RC_Channel: added no_deadzone version of set_pwm()
12 years ago
Andrew Tridgell
ceb3f577d8
libraries: use new math functions
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
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
bd31f340a7
RC_Channel: support channel reversal on range channels
...
this makes it possible to have a reverse throttle in ArduPlane
13 years ago
uncrustify
e9fb7cfd92
uncrustify libraries/RC_Channel/RC_Channel.cpp
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
Amilcar Lucas
9c1ac2d9e6
More work on ch9, 10 and 11
13 years ago
Amilcar Lucas
bbc4bdb729
More flexible RC support
13 years ago
Amilcar Lucas
3de23220ed
RC_Channel parameters: Fix a typo
13 years ago
Amilcar Lucas
724c5f6490
Use ascending order in the values
13 years ago
Amilcar Lucas
1da0ce20ce
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 :(
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
Jason Short
0adb5cb396
Issue 416: RC_Channel – Fix to make dead_zones still output 0
13 years ago
Jason Short
1c690b44de
removed never used filter, and fixed a constrain that could make range calcs go bad
13 years ago
Jason Short
862b374d19
Channel rage fix - low output was always 0 vs _low
13 years ago
Jason Short
1e37a0ec17
added a limit to range output
13 years ago
Andrew Tridgell
37cabb4cfa
fixed dead zone load/save
13 years ago
Andrew Tridgell
9c5a5473ab
added indexes to group info structures
13 years ago
Andrew Tridgell
bf4a77da81
convert libraries to new typesafe macros
13 years ago
Andrew Tridgell
12dac42174
modify RC_Channel for AP_Param
13 years ago
analoguedevices
0ea6ecf8d1
Removed outdated comment:
...
" // deadzone moved to
//control_in = (abs(control_in) < _dead_zone) ? 0 : control_in;"
13 years ago
Michael Oborne
8ec192cf45
fix uint > int issue - for hil
13 years ago
Randy Mackay
ed19c25a97
Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h".
...
Modified FastSerial's write function to return size_t (number of bytes written).
13 years ago
Michael Oborne
6b949511ca
change rc norm_output to scale evenly across the entire range
13 years ago
Pat Hickey
c9f7618ccc
purple: rework the RC_Channel library for the APM_RC changes
13 years ago
Michael Oborne
d18bb1cc7e
prevent div by 0
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
ce338071eb
RC_Channel tweaks. using Radio_trim rather than 1500 in Raw output. Cleaned up line in calc PWM to be easier to read.
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
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
c5fd792024
Make the switch case complete
14 years ago
Amilcar Lucas
9f14c5f578
Fix RC range reversal
14 years ago
Amilcar Lucas
d84f80cb0d
Moved enum values around to make code simpler to read and use
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
jasonshort
e05de48e2d
Adding reverse to Channel Raw output (unscaled output) to fix camera reversing.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3297 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
150f58a4bd
removed scaling on control in because it might cause rounding issues.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2969 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
b7b0212506
Cleaned up or reverse code.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2842 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago