Pat Hickey
99e96031f2
APM_RC_APM2: updated comments for clarity
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
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
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
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
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
7afb091f26
APM_RC: APM2 fast output speed increased to 400hz.
13 years ago
Andrew Tridgell
02f25ac36d
libraries: rename purple to APM2
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