Commit Graph

62 Commits

Author SHA1 Message Date
Lucas De Marchi 36336e17b3 Tools: replace header guard with pragma once 2016-03-16 18:40:45 +11:00
Gustavo Jose de Sousa 84b5555a1a Tools: standardize inclusion of libaries headers
This commit changes the way libraries headers are included in source files:

 - If the header is in the same directory the source belongs to, so the
 notation '#include ""' is used with the path relative to the directory
 containing the source.

 - If the header is outside the directory containing the source, then we use
 the notation '#include <>' with the path relative to libraries folder.

Some of the advantages of such approach:

 - Only one search path for libraries headers.

 - OSs like Windows may have a better lookup time.
2015-08-11 16:28:41 +10:00
Andrew Tridgell 6848746219 Tools: rename a file with a space in it
spaces in filenames play havoc with unix tools
2014-07-19 12:21:05 +10:00
John Arne Birkeland e4498b7bd1 ArduPPM V2.3.17
- Disabled fail-safe output when signal is missing in PPM pass-trough (PPMSUM) mode (feature depreciated by addition of missing signal detection in APM code)
- ppm_encoder_init() will now make sure PPM output always starts with fail-safe (900us) value on throttle after a brown-out reset
2013-12-17 11:26:04 +09:00
Julian Oes 54fffd1348 ArduPPM: version 2.3.16 for release 2013-03-02 10:00:00 +09:00
Julian Oes 875103fc59 ArduPPM: Versioning cleanup, 2.3.16 should be the next official release 2013-03-02 09:59:56 +09:00
John Arne Birkeland bcd142ec0b PPMEncoder - bug fix from previous commit 2013-03-02 09:59:14 +09:00
John Arne 4f9b787e04 Update Tools/ArduPPM/Libraries/PPM_Encoder.h
- Small optimization
2013-03-02 09:53:31 +09:00
Julian Oes a0b0df0252 ArduPPM: Set Ch1-4 to their fail-safe position and leave Ch5-8 at their last value 2013-03-02 09:53:25 +09:00
Julian Oes 8b7c75a700 ArduPPM: Changed the behaviour of the PPM encoder: if a channel is lost retain its last value instead of a fail-safe value (except for Ch3/throttle) 2013-03-02 09:53:21 +09:00
Julian Oes 01a990a3fb ArduPPM: Sorry forgot to push version number of PPM Encoder for ATMEGA328p 2013-01-14 10:11:29 -08:00
Julian Oes 9d0f117c5d ArduPPM: Another small fix found by John Arne 2013-01-13 20:30:35 -08:00
Julian Oes ca5689c8b7 ArduPPM: small bugfix, small speed-up proposed by John Arne 2013-01-13 19:53:18 -08:00
Julian Oes 5f84b5a5dd ArduPPM: latest changes are now disabled by default, throttle low triggering by single channel errors and also recovering from a throttle low event can be enabled with defines 2013-01-11 15:37:03 -08:00
Julian Oes ef6268f62a ArduPPM: changes for throttle low indication and also recovery after a throttle low indication are now set with defines 2013-01-11 15:08:13 -08:00
Julian Oes 70ce94ee88 ArduPPM: added a define for throttle low fail-safe indication 2013-01-11 13:20:50 -08:00
Julian Oes 71b2c3e13d ArduPPM: throttle failsafe is now triggered on single channel loss but recovery from the throttle low is possible 2013-01-11 13:20:49 -08:00
Julian Oes f7f408b569 Fix compile errors 2013-01-11 13:20:49 -08:00
John Arne Birkeland d5364571a8 ArduPPM V2.3.13
- New interrupt system that handles certain Futaba receivers better (simultaneous changes on groups of R/C channels in fast intervals)
- Improved active channel detection requering 100 valid pulses before channel is marked active

- Removed forced throttle fail-safe after channel loss
- Lost channel detection signal for APM by setting channel output to 800us (not activated yet, need APM code to handle signals)
2012-12-16 18:07:55 +01:00
John Arne Birkeland 77fa51dcec ArduPPM v2.3.12 ATMega32u2 (APM 2.x)
---------------------------------------------
- New improved fail-safe detection and handeling for single or multible signal loss and receiver malfuntion
- Improved LED status for APM 2.x
- Improved jitter performance (PPM output using nested interrupts)

-------------------------------------------------------------
ARDUPPM OPERATIONAL DESCRIPTION
-------------------------------------------------------------

APM 2.x LED STATUS:
-------------------
RX - OFF         = No input signal detected
RX - SLOW TOGGLE = Input signal OK
RX - FAST TOGGLE = Invalid input signal(s) detected
RX - ON          = Input signal(s) lost during flight and fail-safe activated
TX - OFF         = PPM output disabled
TX - FAST TOGGLE = PPM output enabled
TX - SLOW TOGGLE = PPM pass-trough mode

SERVO INPUT (PWM) MODE:
 -----------------------
- PPM output will not be enabled unless a input signal has been detected and verified
- Verified inputs are lost during operaton (lose servo wire or receiver malfunction):
  + The PPM output channel for the lost input will be set to the default fail-safe value
  + PPM throttle output (ch3) will be permanently set to fail-safe (900us)
- Lost channel signal is restored:
  + PPM output for the restored channel will be updated with the valid signal
  + PPM throttle output (ch3) will not be restored, and will continue to output fail-safe (900us)

PPM PASS-THROUGH MODE (signal pin 2&3 shorted):
-----------------------------------------------
- PPM output will not be enabled unless a input signal has been detected
- Active signal on input channel 1 has been detected:
  + Any input level changes will be passed directly to the PPM output (PPM pass-trough)
  + If no input level changes are detected withing 250ms:
    + PPM output is enabled and default fail-safe values for all eight channels transmitted
    + Input level change detected again, PPM fail-safe output is terminated and normal PPM pass-through operation is restored
2012-11-23 21:53:35 +01:00
John Arne Birkeland dc9438e57f ArduPPM(experimental): bug fix
- Removed compiled firmware files to prevent acidentally spreading of experimental firmware.
2012-11-22 17:07:05 +01:00
John Arne Birkeland e077814e77 ArduPPM(experimental): Active input channel detection during init 2012-11-22 16:54:04 +01:00
John Arne Birkeland e596978756 ArduPPM: Experimental PPM encoder to test possible fail-safe detection improvements. 2012-11-22 14:24:53 +01:00
John Arne Birkeland be697724ac Improved watchdog timer reset, so that only valid input signals will prevent the watchdog timer from triggering 2012-11-16 12:51:34 +01:00
John Arne Birkeland d692b3baff - ArduPPM v2.3.0 (pre-release)
- Single channel fail-safe detection
2012-11-06 00:45:38 +01:00
Olivier ADLER a9f08c9cb3 ArduPPM: cleaning
case correction for PPM_Encoder.h include from Encoder-PPM.c. Minor comment change.
2012-11-03 12:35:44 +01:00
Olivier ADLER 70c6739fbf ArduPPM: PWM to PPM mode
PPM polarity reversing was not working when changing the Output PPM pin level before timer 1 / output compare init. The compare generator initialization was reverting the pin to low level. Instead of that a force match compare is used after timer / compare generator init to set the PPM output to high level.
2012-11-03 00:57:22 +01:00
Olivier ADLER fd4d944385 ArduPPM: PWM to PPM encoder mode
Added PPM output polarity selection - mainly for stand alone 8 channels encoder board.
2012-11-02 16:32:58 +01:00
Olivier ADLER fe2cd2685c ArduPPM: Redundancy mode
Frame rate change for standard PPM extended format.
2012-11-02 16:32:58 +01:00
Olivier ADLER 1de5b9a209 ArduPPM: Redundancy mode
#define correction for sync symbol limits
2012-11-02 16:32:57 +01:00
Olivier ADLER f7d5c372b9 ArduPPM : Redundancy mode
#define modifications for sync symbol detection and center pwm value correction
2012-10-29 22:22:48 +01:00
Olivier ADLER c750abfbf2 ArduPPM : Redundancy mode
Switchover : wait for end of PPM frame before switching
2012-10-28 01:33:23 +02:00
Olivier ADLER 7618c082c3 ArduPPM: Redundancy mode
Fixed logic problem in the decoder (PPM channel increment)
2012-10-27 23:41:08 +02:00
Olivier ADLER e0393e541c ArduPPM: redundancy mode
Channel count auto detection post processing code
Added a #define : valid frames threshold before detection validation
2012-10-21 23:46:16 +02:00
Olivier ADLER 0b171178b5 ArduPPM: Redundancy mode
Reworked the PPM decoder (i did forget the sync symbol pre-pulse)
Splitted pre-pulse and pulse width variable for better reliability and easier processing
2012-10-17 16:28:05 +02:00
Olivier ADLER 3784f326e8 ArduPPM: Redundancy mode
Base algorithm added for channel count auto detection in the decoder himself.
Replaced the #define for PPM_CHx_CHANNELS by PPM_CHx_MAX_CHANNELS.
Channel count #define was not needed anymore thanks to the channel count auto detection.
Channel detection post processing to do.
2012-10-15 22:49:01 +02:00
Olivier ADLER f84a12a5cb ArduPPM: Redundancy mode switchover algorithm
Auto Switchover algorithm with primary receiver switchback.
Force switchover channel moved to channel 9
Manual modifications.
2012-10-14 23:58:00 +02:00
Olivier ADLER 6558731cff ArduPPM: Redundancy mode
Dual input PPM decoder rework
flags for frame and channel error control
decoder algorithm rework
2012-10-14 01:10:52 +02:00
Olivier ADLER 1ce9e5107f ArduPPM: Redundancy mode
Work in progress
adding a channel pre pulse lengt #define for each PPM mode
dual channels PPM input capture interrupt algorithm
2012-10-13 14:59:03 +02:00
Olivier ADLER e22a01682e ArduPPM: PPM Redundancy mode
Some rework and cleaning for #define stuff
2012-10-12 19:08:19 +02:00
Olivier ADLER 5e65e5ef8a ArduPPM : Redundancy mode
Work in progress on a new Redundancy dual PPM sum mode for PPM encoder.

- New library PPM_Encoder_v3.h and new manual manual_v3.txt

- New format conversion capability between input and output PPM frame timings and channel count.

This will be experimental until heavily tested. The main goal is to allow the use of low cost satellite receivers in a high safety setup, and allow a new teacher / student RC mode without link between the two pilot transmitters.
2012-10-12 14:32:14 +02:00
Olivier ADLER ee3df88dc3 Rename: file rename
Small cleaning removing space in filename.
2012-10-11 14:47:03 +02:00
Olivier ADLER 42e0aafcd9 Protocols : Jeti telemetry description
This is the Jeti Telemetry protocol. Common in Europe for RC multicopters telemetry through 2.4 Ghz Jeti Duplex links.
2012-10-11 11:42:45 +02:00
Craig Elder 472ec189a9 Housekeeping: Removed copies of Libraries from Tools/ArduPPM/Workbasket. 2012-09-21 16:51:37 -07:00
John Arne Birkeland f4a4982328 ArduPPM V2.2.68 - Fixed possible logic flaw in throttle failsafe reset if _JITTER_FILTER_ is enabled 2012-06-04 22:55:15 +02:00
John Arne Birkeland eb84554d26 V2.2.67 - Implemented detection and failsafe (throttle = 900us) for missing throttle signal. 2012-06-03 02:42:39 +02:00
John Arne Birkeland 844e1c9695 ArduPPM V2.2.66
- Added APM2 (ATmega32U2) support for using TX and RX status leds to indicate PWM and PPM traffic

<RX><OFF> no pwm input detected
<RX><TOGGLE> speed of toggle indicate how many channels are active
<RX><ON> input lost (failsafe)
<TX><OFF> ppm output not started
<TX><FAST TOGGLE> normal PWM->PPM output or PPM passtrough failsafe
<TX><SLOW TOGGLE> PPM passtrough
2012-03-16 20:48:55 +01:00
Pat Hickey ff0fc26484 Cleanup: rename files with spaces in their names, replace with underscores
* Skipped /Tools/ArdupilotMegaPlanner/Resources/new...
  and /archive/Configurator/Source/Utilities/TDMS/G...
  because I don't want to mess with that.
2012-02-28 16:14:31 -08:00
Pat Hickey cc36964a44 Rename Jeti\ Duplex directory Jeti_Duplex.
* Spaces in file and directory names are poor form.
2012-01-15 11:24:37 -08:00
Olivier ADLER 635047eece ArduPPM : Added "Binaries" folder with latest compiled versions.
Include 400 mA USB power request modification.
2011-12-06 22:35:45 +01:00