Commit Graph

15 Commits

Author SHA1 Message Date
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
uncrustify d74e505c79 uncrustify libraries/APM_RC/APM_RC_APM2.cpp 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
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
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 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
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
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 733000583d APM_RC: APM2 fast output speed increased to 400hz. 2011-12-10 13:04:11 -08:00
Andrew Tridgell a9dfc68bc0 libraries: rename purple to APM2 2011-11-25 20:00:19 -08:00