Created
November 27, 2022 19:42
-
-
Save ethan-gallant/ca824742b04175b2ab9644b0efe20287 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub offset_drive | |
call math.muldiv(left_mod, left_target, 1000, 1000 + DRIVE_OFFSET) | |
call math.muldiv(right_mod, right_target, 1000, 1000 - DRIVE_OFFSET) | |
motor.right.target = right_mod | |
motor.left.target = left_mod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment