Andrew Tridgell
d5e1a75616
APM_RC: fixed APM1 example sketch
12 years ago
Andrew Tridgell
d0a2feb99c
APM_RC: added a test for ISR masking in APM_RC
12 years ago
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
12 years ago
John Arne Birkeland
e194c6c740
APM_RC: Modified get_last_update() to be more interrupt friendly
12 years ago
Andrew Tridgell
17c115d2aa
SITL: don't define __AVR_ATmega2560__ on desktop build
...
this allows us to properly separate the desktop build in the code
12 years ago
rmackay9
01dc9fbe3e
APM_RC: allow ppm sum for as few as 5 channels
12 years ago
rmackay9
47b1bc30d3
APM_RC: fix _last_update definition to resolve build error
12 years ago
John Arne Birkeland
4258490cd8
APM_RC - Interupt safe get_last_update();
12 years ago
rmackay9
73ed6c9dbf
ArduCopter, APM_RC: failsafe if PPM encoder fails to update for 2 seconds
12 years ago
John Arne Birkeland
97d85de361
Optimized APM_RC.InputCh() to prevent global interrupt disable each time a value is read.
12 years ago
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!
13 years ago
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.
13 years ago
uncrustify
763d36ecf0
uncrustify libraries/APM_RC/APM_RC_APM2.h
13 years ago
uncrustify
0234d70511
uncrustify libraries/APM_RC/APM_RC.h
13 years ago
uncrustify
5af2e87786
uncrustify libraries/APM_RC/APM_RC_APM1.h
13 years ago
uncrustify
9365bf7126
uncrustify libraries/APM_RC/APM_RC_APM2.cpp
13 years ago
uncrustify
323bc2fb1b
uncrustify libraries/APM_RC/APM_RC_APM1.cpp
13 years ago
uncrustify
e0dea4c976
uncrustify libraries/APM_RC/examples/APM2_radio/APM2_radio.pde
13 years ago
uncrustify
41108c390e
uncrustify libraries/APM_RC/examples/APM1_radio/APM1_radio.pde
13 years ago
Pat Hickey
99e96031f2
APM_RC_APM2: updated comments for clarity
13 years ago
rmackay9
3482f05b48
APM_RC: rename example sketch directories for APM2 so they can be opened easily from arduino ide
13 years ago
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
13 years ago
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
13 years ago
Andrew Tridgell
ebc55bb494
RC: disable interrupts when reading the RC registers
...
this prevents getting bogus values which could cause a flight mode
change
13 years ago
Andrew Tridgell
5f749325f0
APM_RC: allow the fast RC speed to be passed as a parameter
...
this will allow users to test different speeds
13 years ago
Jason Short
41b435a487
Updated fastPWM to 490Hz
13 years ago
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).
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
Pat Hickey
9195006541
APM_RC examples: add calls to enable_out after init
13 years ago
Pat Hickey
602d56304a
APM_RC: PWM outputs are disabled by default on init
13 years ago
Pat Hickey
276913a950
APM_RC enable_out and disable_out added to APM1 and APM2
...
* Outputs still enabled by default
13 years ago
Jason Short
69ffc7e115
updated channel notes
13 years ago
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.
13 years ago
Jason Short
7adc80c513
removed newlines to clean up code
13 years ago
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.
13 years ago
Pat Hickey
56b0be3124
APM_RC: APM1 fast output speed increased to 400hz.
13 years ago
Pat Hickey
7afb091f26
APM_RC: APM2 fast output speed increased to 400hz.
13 years ago
Andrew Tridgell
5c99035823
fixed the desktop build
...
This fixes a vtable link bug
13 years ago
Wenyao Xie
fd77fe5a9d
Rover live test WORKS! "Murphy's Law is a turtle"
13 years ago
Andrew Tridgell
02f25ac36d
libraries: rename purple to APM2
13 years ago
Andrew Tridgell
0ee654d6bf
desktop: fixed desktop build
...
vtable error
13 years ago
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.
13 years ago
Pat Hickey
ea4c220ee9
APM_RC: OCR register init moved from ArduCopter/radio.pde to lib inits.
13 years ago
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
13 years ago
John Arne Birkeland
a621f5821f
APM_RC: Cosmetic changes to increase readability and some minor optimizations
14 years ago
James Goppert
0c7c508541
Optional recursion added.
14 years ago
James Goppert
5489b84f8e
Improvements to cmake.
14 years ago
James Goppert
d887a28b91
Added ArduBoat/ ArduRover/ and APO library.
14 years ago
Amilcar Lucas
227ce0a92d
Merge some small misc improvements from APM_Camera branch
14 years ago
unknown
a4e001bbcf
Adding CMake support
14 years ago