Added flush before every postmeasure().
Changed variables from double to float in ToAngles() to avoid warnings.

Signed-off-by: Markus Tillman <reetopps6@hotmail.com>