Merge branch 'main' of https://git.myitr.org/Jukebox/jukebox-software
This commit is contained in:
commit
b861a61f07
@ -67,7 +67,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"def normalize_degree(theta):\n",
|
"def normalize_degree(theta):\n",
|
||||||
" # Normalizes degree theta from -1.5pi to 1.5pi\n",
|
" # Normalizes degree theta from -1.5pi to 1.5pi\n",
|
||||||
" multiplier = 1\n",
|
" multiplier = 1.5\n",
|
||||||
" normalized_theta = theta % (math.pi * multiplier)\n",
|
" normalized_theta = theta % (math.pi * multiplier)\n",
|
||||||
" \n",
|
" \n",
|
||||||
" # Maintain the negative sign if the original angle is negative\n",
|
" # Maintain the negative sign if the original angle is negative\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user