|
Re: Value of degree to calculate range?
Try a simpler version first. Maybe something that just drives forward if the light is in view and stops the motors otherwise. That will help you debug.
What's the purpose of USHRT_MAX? Don't fight with the C arrays, just start from zero. Your code expects a value for targetRange[0] when pwm07 is at its minimum of 144.
Jason
|