ik seems to do something - mapping problems

the mapping between rad/angles and pwm values is incorrect. it produces
values bigger than 100000