From: Jon Langseth Date: Sat, 3 Sep 2011 11:08:38 +0000 (+0200) Subject: New tuning of PPM timer constants. These values are tuned to give max range, and... X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=12dcaa4691c9b1b2f7c8873b51ff01f34886a5de;p=rctxduino 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 --- 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;