Craig Elder
b667c6eb8c
APM_RC: fixed noisy PWM output on startup for APM2
...
This reduces the number of rubbish pulses on the APM2 PWM output pins
on startup, which should help with booting some cheaper ESCs.
Thanks to Randy for the idea!
2012-09-10 08:09:28 +10:00
Pat Hickey
0cef8ea12d
APM_RC_APM1.cpp: Bugfix on mapping of SetFastOutputChannels to ICR reg
...
* Previously had the ICR register for ch1/2/9 (on timer5) swapped with
ch3/4/10 (on timer1).
* This bug probably didn't make a difference in operation since
SetFastOutputChannels is typically only used for copters, where at
least CH1,2,3,4 would be set to fast all at once.
2012-08-28 17:12:41 -07:00
uncrustify
4062cca4e0
uncrustify libraries/APM_RC/APM_RC_APM2.h
2012-08-21 19:04:09 -07:00
uncrustify
1f2d53f2c9
uncrustify libraries/APM_RC/APM_RC.h
2012-08-21 19:04:08 -07:00
uncrustify
4a8f66abe0
uncrustify libraries/APM_RC/APM_RC_APM1.h
2012-08-21 19:04:08 -07:00
uncrustify
d74e505c79
uncrustify libraries/APM_RC/APM_RC_APM2.cpp
2012-08-21 19:04:08 -07:00
uncrustify
49686f18f9
uncrustify libraries/APM_RC/APM_RC_APM1.cpp
2012-08-21 19:04:08 -07:00
uncrustify
695c0e5239
uncrustify libraries/APM_RC/examples/APM2_radio/APM2_radio.pde
2012-08-21 19:04:08 -07:00
uncrustify
496553898e
uncrustify libraries/APM_RC/examples/APM1_radio/APM1_radio.pde
2012-08-21 19:04:08 -07:00
Pat Hickey
394a3059b7
APM_RC_APM2: updated comments for clarity
2012-08-13 15:34:17 -07:00
rmackay9
a3a56c488a
APM_RC: rename example sketch directories for APM2 so they can be opened easily from arduino ide
2012-08-13 11:50:53 +09:00
Andrew Tridgell
bff8fc8947
APM_RC: added OutputCh_current() method
...
this allows logging of the actual servo output values. The radio_out
method previously used doesn't take account of the various override
mechanisms available via waypoints
2012-04-24 10:57:43 +10:00
rmackay9
cf1a6f8ab8
APM_RC - moved Force_Out0_Out1, Force_Out2_Out3 and Force_Out6_Out6 to APM_RC parent class because it's already implemented in the APM1 and APM2 child classes anyway
2012-03-25 21:13:31 +09:00
Andrew Tridgell
2969e16f7d
RC: disable interrupts when reading the RC registers
...
this prevents getting bogus values which could cause a flight mode
change
2012-03-10 10:34:30 +11:00
Andrew Tridgell
63ea5dfb49
APM_RC: allow the fast RC speed to be passed as a parameter
...
this will allow users to test different speeds
2012-03-02 17:57:08 +11:00
Jason Short
59e1d43f60
Updated fastPWM to 490Hz
2012-02-29 22:17:38 -08:00
Pat Hickey
fb76aa9ca9
APM_RC_APM2: Add support for CH_10 and CH_11
...
* CH_10 is on APM2 pin A10 (based on A1..A8 convention)
* CH_11 is on APM2 pin A11
* Only the code in enable_out, disable_out, and OutputCh needed to change.
* CH_10 and CH_11 always have an output period of 20ms (50Hz).
2012-02-06 22:11:01 -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
Pat Hickey
ef60642bb2
APM_RC examples: add calls to enable_out after init
2012-01-24 09:09:08 -08:00
Pat Hickey
a13e371d1e
APM_RC: PWM outputs are disabled by default on init
2012-01-22 12:03:11 -08:00
Pat Hickey
47204921e9
APM_RC enable_out and disable_out added to APM1 and APM2
...
* Outputs still enabled by default
2012-01-22 12:03:11 -08:00
Jason Short
e68f9191c9
updated channel notes
2012-01-15 10:24:15 -08:00
Pat Hickey
d015e0d6d9
APM_RC & ArduCopter: Change interface to SetFastOutputChannels to use _BV
...
* Every use of MSK_CH_n changed to _BV(CH_n)
* Easier to read, and will allow CH_n to be parameterized without needing
a separate macro expansion for the MSK value.
2012-01-09 21:57:01 -08:00
Jason Short
3878ac01ef
removed newlines to clean up code
2011-12-29 23:02:01 -08:00
Pat Hickey
291aaffdd9
APM_RC_APM2: Remove OutputCh from ::Init()
...
* These calls were off by one anyway, by using the channel numbers
as ints ant not CH_n macros, and that caused an ESC cal problem.
2011-12-15 13:47:43 -08:00
Pat Hickey
e992b2e2a2
APM_RC: APM1 fast output speed increased to 400hz.
2011-12-10 13:06:06 -08:00
Pat Hickey
733000583d
APM_RC: APM2 fast output speed increased to 400hz.
2011-12-10 13:04:11 -08:00
Andrew Tridgell
11b857d487
fixed the desktop build
...
This fixes a vtable link bug
2011-12-05 18:06:58 +11:00
Wenyao Xie
e6aee7963f
Rover live test WORKS! "Murphy's Law is a turtle"
2011-12-03 22:42:08 -05:00
Andrew Tridgell
a9dfc68bc0
libraries: rename purple to APM2
2011-11-25 20:00:19 -08:00
Andrew Tridgell
65f2549825
desktop: fixed desktop build
...
vtable error
2011-11-25 20:00:18 -08:00
Pat Hickey
0549a50e9e
APM_RC: _set_speed functions implemented for APM_RC_APM1 and _Purple
...
* I have not tested any of these on real hardware.
2011-11-25 20:00:18 -08:00
Pat Hickey
718f3dee00
APM_RC: OCR register init moved from ArduCopter/radio.pde to lib inits.
2011-11-25 20:00:18 -08:00
Pat Hickey
5cb60f76cf
purple: rework APM_RC library for purple hardware
...
this splits the APM_RC class into instances for purple and APM1, and
adds example sketches for both
2011-11-25 20:00:16 -08:00
John Arne Birkeland
8464093c18
APM_RC: Cosmetic changes to increase readability and some minor optimizations
2011-10-02 18:05:00 +02: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
Amilcar Lucas
c9d9ee0d3b
Merge some small misc improvements from APM_Camera branch
2011-09-17 20:25:31 +02:00
unknown
9f028bb5a0
Adding CMake support
2011-09-14 15:44:55 +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
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
tridge60@gmail.com
1dc0063e67
HIL: fixed radio_status in setHIL() for APM_RC
...
thanks to Michael Oborne for noticing this!
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2952 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-28 12:11:25 +00:00
jasonshort
16d1e5d0b8
removed some initial settings
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2565 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-16 16:35:11 +00:00
deweibel@gmail.com
8b18bd3481
Add clearOverride message to allow failsafe recovery from joystick control
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2540 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-11 23:59:35 +00:00
deweibel@gmail.com
530eeb4184
Fix bug for GCS joystick control
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2440 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-30 03:44:07 +00:00
deweibel@gmail.com
5d5b51cbe6
Change setHIL to return a bool based on if GCS joystick control is active
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2423 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-05-27 23:15:29 +00:00
jasonshort
e1d945812d
defaulted to 38400 baud
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1885 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-04-16 04:50:38 +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