frc2423 / mario-kart-bot

0 stars 0 forks source link

Implement Banana Obstacle #19

Open DoctorChloroplast opened 2 years ago

DoctorChloroplast commented 2 years ago

-When a representation of a banana is detected, a random value is determined -The value is between 1 and 8, each represents a certain direction (1: forward, 2: forward-right, 3: right, etc.) -The robot turns in a certain direction determined by the generated value -Any controls made to determine a robot's direction are rendered useless for a certain amount of time

DOD: When a representation of a banana is detected, a randomly generated value with each possible value assigned to a certain direction determines which direction a robot is turned towards, and any controls determining the robot's direction are rendered useless for a certain amount of time