Advertisement
Guest User

Untitled

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