angle estimation from acc test

floating arithmetics work, but I can not use sprintf properly.