Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PPR = 1440 * 4 # decoder position steps per revolution
- # update position from shmem.position, unwrap from (mod 2**32) to integer
- position += ( shmem.position - position + 0x80000000 ) % 2**32 - 0x80000000
- angle = position * 360 / PPR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement