Fix error in AB period calculation

- Only compensates for tilting along axis of rotation

Signed-off-by: Dustin Ngo (MacBook) <dustin.ngo@gmail.com>