View Single Post
  #6   Spotlight this post!  
Unread 23-01-2017, 16:48
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Class ADXRS450_Gyro output angles?


You don't need to invent anything when dealing with a continuous angle sensor. It's already been invented.

The IEEEremainder function (supported in Java and C++) can take any angle and convert it to the range -180 to +180

You can also use it to find the shortest angle (magnitude and sign) between a setpoint and a process variable.


Reply With Quote