fixed linear acceleration functs.
Merge remote-tracking branch 'alex/f/accelFunc' into develop