results are 0.00 when adding 2 floats together

Probably a stupid suggestion that I have not tested but you define the offending floats all on the same line (float accAngle = 0.0, currAngle = 0.0, prevAngle = 0.0, elapsedTimeSec=0.0;) and only the first entry (accAngle) works as expected. I program in VB6 and if you define multiple variables on the same line only the last is of your defined type and the rest end up as variant types. Maybe your having a similar problem.