From 12dcaa4691c9b1b2f7c8873b51ff01f34886a5de Mon Sep 17 00:00:00 2001 From: Jon Langseth Date: Sat, 3 Sep 2011 13:08:38 +0200 Subject: [PATCH] New tuning of PPM timer constants. These values are tuned to give max range, and precise center with fmsusb2 PPM-to-USB decoder. As a bonus, it seems the PPM timing is so clean, we can now feed all eight channels by default, and fmsusb2 will happily ignore the two upper channels :D --- source/RCTXDuino/RCTXDuino.pde | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/RCTXDuino/RCTXDuino.pde b/source/RCTXDuino/RCTXDuino.pde index 0aff589..0bc8562 100644 --- a/source/RCTXDuino/RCTXDuino.pde +++ b/source/RCTXDuino/RCTXDuino.pde @@ -83,10 +83,10 @@ volatile bool do_channel = true; // Is next operation a channel or a sepa // The timing here (and/or in the ISR) needs to be tweaked to provide valid // RC PPM signals accepted by standard RC RX'es and the Microcopter... -#define framelength 21000 // Max length of frame -#define seplength 300 // Lenght of a channel separator -#define chmax 1550 // Max lenght of channel pulse -#define chmin 620 // Min length of channel +#define framelength 21500 // Max length of frame +#define seplength 250 // Lenght of a channel separator +#define chmax 1600 // Max lenght of channel pulse +#define chmin 480 // Min length of channel #define chwidht (chmax - chmin)// Useable time of channel pulse // ----------------- Menu/IU related stuffs -------------------- @@ -215,7 +215,7 @@ void model_defaults( void ) // data format changes. // NOTE: This means that stored model conficuration is reset // to defaults when the EEPROM version/format changes. - model.channels = 6; + model.channels = 8; model.rev[0] = model.rev[1] = model.rev[2] = model.rev[3] = model.rev[4] = model.rev[5] = model.rev[6] = model.rev[7] = false; model.dr[0] = model.dr[1] = model.dr[2] = model.dr[3] = 0; -- 2.39.2