View Single Post
  #4   Spotlight this post!  
Unread 04-03-2016, 06:05
rich2202 rich2202 is online now
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,152
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Help needed with algorithm

Print out the values of i, and out and see if they are what you expect.

Make sure the value being passed to the COS function is in the right form (degrees, radians, gradian).

LED's are typically on/off. Passing continuous PWM values could have unexpected results for values not near full on or full off.
Reply With Quote