From: Jon Langseth Date: Tue, 30 Aug 2011 16:15:28 +0000 (+0200) Subject: Moved to new value format on model.stick. Used to be float 0..1, is not float -100... X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=06b016b87936bd2afe8831b82e09088244ddb206;hp=06b016b87936bd2afe8831b82e09088244ddb206;p=rctxduino Moved to new value format on model.stick. Used to be float 0..1, is not float -100 to 100, plus a series of other fixes: Updated process_inputs() to the new values Added dual-rate math to process_inputs() Updated the ISR_Timer to reflect the new value format, and added an extra sanity check Added raw values to model datastruct for debugging Added dumping of raw value to serial-dumping. Tested tuning of PPM timing const's, may still be glitchy.. Moved the calibrate-trigger during startup, it did not get triggered after the change to active low logic Removed a for-loop-limit-bug causing incorrect/invalid values for input_cal.max[0] and model.stick[0] Changed the calibrate routine to use one int less, less code space and cycles. ---