Andrew Tridgell
d5e1a75616
APM_RC: fixed APM1 example sketch
2012-11-22 15:42:33 +11:00
Andrew Tridgell
d0a2feb99c
APM_RC: added a test for ISR masking in APM_RC
2012-11-22 15:42:33 +11:00
Andrew Tridgell
a71c7b336d
Revert "APM_RC: Modified get_last_update() to be more interrupt friendly"
...
This reverts commit 50ba0ce4fa41c6d4101dff8da17c267a65750522.
It didn't build, and I want to do a release based on tested code
2012-11-21 21:48:02 +11:00
John Arne Birkeland
e194c6c740
APM_RC: Modified get_last_update() to be more interrupt friendly
2012-11-21 10:34:04 +01:00
Andrew Tridgell
17c115d2aa
SITL: don't define __AVR_ATmega2560__ on desktop build
...
this allows us to properly separate the desktop build in the code
2012-11-19 09:03:35 +11:00
rmackay9
01dc9fbe3e
APM_RC: allow ppm sum for as few as 5 channels
2012-11-16 11:07:11 +09:00
rmackay9
47b1bc30d3
APM_RC: fix _last_update definition to resolve build error
2012-11-16 10:00:56 +09:00
John Arne Birkeland
4258490cd8
APM_RC - Interupt safe get_last_update();
2012-11-15 22:42:28 +01:00
rmackay9
73ed6c9dbf
ArduCopter, APM_RC: failsafe if PPM encoder fails to update for 2 seconds
2012-11-15 23:35:36 +09:00
John Arne Birkeland
97d85de361
Optimized APM_RC.InputCh() to prevent global interrupt disable each time a value is read.
2012-11-08 01:03:24 +01:00
Craig Elder
90b74f5bab
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
7b3009a238
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
763d36ecf0
uncrustify libraries/APM_RC/APM_RC_APM2.h
2012-08-21 19:04:09 -07:00
uncrustify
0234d70511
uncrustify libraries/APM_RC/APM_RC.h
2012-08-21 19:04:08 -07:00
uncrustify
5af2e87786
uncrustify libraries/APM_RC/APM_RC_APM1.h
2012-08-21 19:04:08 -07:00
uncrustify
9365bf7126
uncrustify libraries/APM_RC/APM_RC_APM2.cpp
2012-08-21 19:04:08 -07:00
uncrustify
323bc2fb1b
uncrustify libraries/APM_RC/APM_RC_APM1.cpp
2012-08-21 19:04:08 -07:00
uncrustify
e0dea4c976
uncrustify libraries/APM_RC/examples/APM2_radio/APM2_radio.pde
2012-08-21 19:04:08 -07:00
uncrustify
41108c390e
uncrustify libraries/APM_RC/examples/APM1_radio/APM1_radio.pde
2012-08-21 19:04:08 -07:00
Pat Hickey
99e96031f2
APM_RC_APM2: updated comments for clarity
2012-08-13 15:34:17 -07:00
rmackay9
3482f05b48
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
e8f8115a8f
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
b5dbdab81e
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
ebc55bb494
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
5f749325f0
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
41b435a487
Updated fastPWM to 490Hz
2012-02-29 22:17:38 -08:00
Pat Hickey
83326a9d62
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
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).
2012-01-28 12:25:47 +09:00
Pat Hickey
9195006541
APM_RC examples: add calls to enable_out after init
2012-01-24 09:09:08 -08:00
Pat Hickey
602d56304a
APM_RC: PWM outputs are disabled by default on init
2012-01-22 12:03:11 -08:00
Pat Hickey
276913a950
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
69ffc7e115
updated channel notes
2012-01-15 10:24:15 -08:00
Pat Hickey
a19afd926a
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
7adc80c513
removed newlines to clean up code
2011-12-29 23:02:01 -08:00
Pat Hickey
d6a8440ef2
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
56b0be3124
APM_RC: APM1 fast output speed increased to 400hz.
2011-12-10 13:06:06 -08:00
Pat Hickey
7afb091f26
APM_RC: APM2 fast output speed increased to 400hz.
2011-12-10 13:04:11 -08:00
Andrew Tridgell
5c99035823
fixed the desktop build
...
This fixes a vtable link bug
2011-12-05 18:06:58 +11:00
Wenyao Xie
fd77fe5a9d
Rover live test WORKS! "Murphy's Law is a turtle"
2011-12-03 22:42:08 -05:00
Andrew Tridgell
02f25ac36d
libraries: rename purple to APM2
2011-11-25 20:00:19 -08:00
Andrew Tridgell
0ee654d6bf
desktop: fixed desktop build
...
vtable error
2011-11-25 20:00:18 -08:00
Pat Hickey
b8c44d2fc0
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
ea4c220ee9
APM_RC: OCR register init moved from ArduCopter/radio.pde to lib inits.
2011-11-25 20:00:18 -08:00
Pat Hickey
36346fd86b
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
a621f5821f
APM_RC: Cosmetic changes to increase readability and some minor optimizations
2011-10-02 18:05:00 +02:00
James Goppert
0c7c508541
Optional recursion added.
2011-09-30 17:17:51 -04:00
James Goppert
5489b84f8e
Improvements to cmake.
2011-09-29 21:23:26 -04:00
James Goppert
d887a28b91
Added ArduBoat/ ArduRover/ and APO library.
2011-09-29 14:12:15 -04:00
Amilcar Lucas
227ce0a92d
Merge some small misc improvements from APM_Camera branch
2011-09-17 20:25:31 +02:00
unknown
a4e001bbcf
Adding CMake support
2011-09-14 15:44:55 +02:00