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
Andrew Tridgell
df77c462a4
fixed initialisation of RC_Channel class
2012-02-13 16:22:51 +11:00
Andrew Tridgell
dff75dba96
convert libraries to new typesafe macros
2012-02-13 16:22:51 +11:00
Andrew Tridgell
fc0f1c52ca
modify RC_Channel for AP_Param
2012-02-13 16:22:51 +11:00
analoguedevices
a07f37f1b4
Removed outdated comment:
...
" // deadzone moved to
//control_in = (abs(control_in) < _dead_zone) ? 0 : control_in;"
2012-02-11 16:51:02 +00:00
Michael Oborne
651bd6953b
fix uint > int issue - for hil
2012-02-11 11:35:59 +08:00
Randy Mackay
98f3386ea0
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).
2012-01-28 12:25:47 +09:00
Michael Oborne
e71266c258
change rc norm_output to scale evenly across the entire range
2012-01-20 16:24:55 +08:00
Pat Hickey
ce4547a1a5
purple: rework the RC_Channel library for the APM_RC changes
2011-11-25 20:00:16 -08:00
Amilcar Lucas
01df18b292
Added camera and/or antenna mount support.
...
It is fully configurable with the mission planner, there is no need to change
the source code to adapt to your setup.
It needs more testing, but the SIL is not working for me.
2011-10-31 22:55:58 +01:00
Michael Oborne
12d8b2cb9e
prevent div by 0
2011-10-30 21:28:39 +08:00
Andrew Tridgell
3991f9eff3
move g_rc_function[] to RC_Channel library
...
libraries should not rely on data declared in the main program. This
caused a build error for the Desktop build for ArduCopter under cygwin
2011-10-29 18:42:18 +11:00
Jason Short
3b3f6bd168
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.
2011-10-27 11:34:00 -07:00
James Goppert
ac3e73f5c0
Optional recursion added.
2011-09-30 17:17:51 -04:00
James Goppert
112d5e9531
Improvements to cmake.
2011-09-29 21:23:26 -04:00
James Goppert
3a00ceb593
Added ArduBoat/ ArduRover/ and APO library.
2011-09-29 14:12:15 -04:00
Jason Short
1243e76f29
Dead Zone fix - Now the range is full instead of clipped. Should make the Yaw much more smooth.
2011-09-26 22:12:39 -07:00
Jason Short
39cefe9554
RC_Channel tweaks. using Radio_trim rather than 1500 in Raw output. Cleaned up line in calc PWM to be easier to read.
2011-09-21 14:52:20 -07:00
Amilcar Lucas
c9d9ee0d3b
Merge some small misc improvements from APM_Camera branch
2011-09-17 20:25:31 +02:00
Jason Short
1f52ad27d9
roughed in an expo option idea
...
made min and max values 1100, 1900
removed hard coded init for camera values
2011-09-16 19:06:53 -07:00
unknown
7bb800aafc
Merge branch 'master' of https://code.google.com/p/ardupilot-mega/
2011-09-14 16:02:21 +02:00
unknown
9f028bb5a0
Adding CMake support
2011-09-14 15:44:55 +02:00
Amilcar Lucas
c58b563584
Revert more of 6dcbc7f44bc0.
...
Fix an issue with initialization of channels that on-line changed their function.
For the curious people that the code size overhead of having any aux channel do any function (with this code) is 44 bytes.
To see wich code I'm talking about, do a git diff 05057ac2d455..this_commit (replace this commit with the commit hash of this commit)
2011-09-13 14:01:35 +02:00
Amilcar Lucas
ef955eace4
These changes were meant to be inside commit a14c06adc06b. I'm sorry but reverting stuff is not that easy
2011-09-13 01:54:47 +02:00
Amilcar Lucas
dd843d18ec
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
2011-09-13 01:24:06 +02:00
Amilcar Lucas
f7f745055d
Use the G_RC_AUX macro when possible. Added more comments. Remove unused code
2011-09-12 20:21:12 +02:00
Amilcar Lucas
b8832fe9ab
Use G_RC_AUX macro to simplify accessing the auxiliary servos
2011-09-12 00:02:47 +02:00
Amilcar Lucas
69a9f44fee
This is ugly, but it fixes compilation on arduino
2011-09-11 23:25:06 +02:00
Amilcar Lucas
5a27954e26
Moved update_aux_servo_function() to the RC_Channel_aux.* files.
...
This simplifies code sharing between ArduCopter and Arduplane at the expense of 48bytes.
Moved CH_x defines out of the defines.h file and into the library where they belong
2011-09-11 23:07:30 +02:00
Amilcar Lucas
966f9f962a
Moved the RC_Channel_aux class to its own file. The includes could be improved, has anyone got any ideas how ?
2011-09-11 19:13:01 +02:00
Amilcar Lucas
7544b9abd3
Make the switch case complete
2011-09-11 18:32:24 +02:00
Amilcar Lucas
59bd4d731a
Fix RC range reversal
2011-09-11 04:12:46 +02:00
Amilcar Lucas
a0dc3b552e
I do not understand this, but it looks like it needs int8 here
2011-09-11 02:41:48 +02:00
Amilcar Lucas
a78de771d4
Moved enum values around to make code simpler to read and use
2011-09-11 02:34:47 +02:00
Amilcar Lucas
93e13ace97
Added comments and TODO
2011-09-10 23:57:27 +02:00
Amilcar Lucas
b977007bdf
Moved a function from radio.pde to the RC_Channel_aux library. Now its more readable and reusable
2011-09-10 13:26:29 +02:00
Amilcar Lucas
9e80f2e920
This is the real HEAD of the APM_Camera branch. Seams that lots of changes got lost in the SVN to GIT port
2011-09-09 16:18:38 +02:00
jasonshort
3b80bc8c58
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
2011-09-08 04:58:42 +00:00
jasonshort
e63fc0fe68
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
2011-07-30 23:48:38 +00:00
jasonshort
f6e5825349
Cleaned up or reverse code.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2842 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-13 05:54:40 +00:00
rmackay9@yahoo.com
13203fd211
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
2011-06-10 03:33:31 +00:00
jasonshort
19e5cad091
changed a bool to uint8_t
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2120 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-06 17:51:26 +00:00
jasonshort
88a8c1113c
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
2011-05-05 17:46:11 +00:00
DrZiplok
85d006c290
Re-order class members to avoid initializer-order warnings.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2073 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-02 05:56:21 +00:00
james.goppert@gmail.com
58118ef9f0
Eclipse makefile support for examples.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1860 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-09 19:38:12 +00:00
tridge60@gmail.com
211de598c3
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
2011-03-21 07:25:48 +00:00