PT1 element and normalised acc/mag readings.

PT1 element and normalised acc/mag readings.
test flown with the unusual cleanflight defaults.
used cpu cycles.
it is eating up to much.
use a f303 or do it manualy

when it might introduce a bug - what would be the error?
it add's no value to the constrain.

your cpu budget is tight ;-)
Am 09.06.2014 21:25, schrieb Trey Marc:
>
> In src/flight_common.c:
>
> >          DTerm = constrainf((deltaSum / 3.0f) * pidProfile->D_f[axis], -300.0f, 300.0f);
> >
> >          // -----calculate total PID output
> > -        axisPID[axis] = constrain(lrintf(PTerm + ITerm - DTerm), -1000, 1000);
> > +        axisPID[axis] = constrain(PTerm + ITerm - DTerm, -1000, 1000);
>
> any reason to not use lrintf and do a cast ?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/hydra/cleanflight/pull/19/files#r13559600>.
>