Author Topic: Beta motor AI  (Read 833 times)

Offline pokebro14

  • Your mother
  • Super Heavyweight
  • Posts: 1091
  • Rep: 3
  • Interior crocodile alligator 🤔
  • Awards BOTM Winner
    • View Profile
    • Awards
Beta motor AI
« on: October 08, 2017, 03:31:37 PM »
What code would you put in the AI for a servo beta power flipper and what would you put as the name for analog and smartzonebox
Achievements and tournament placings

Offline doot

Re: Beta motor AI
« Reply #1 on: October 08, 2017, 03:53:45 PM »
If you're not savvy into AI'ing, use Frenzy or THZ. AI the weapon control as "Hammer" and the smartzone as "whipzone".

If, however, you know what you're doing, use Judge.py instead. It's harder to get working, requiring MotorID (the component ID of the motor you're using), StartAngle (the starting angle of the weapon, though you need to get this precise. Usually nose:math.+-pi/2 works fine)  and Reload (The time it takes to complete a hammer swing on the main rotation and the return rotation) on the AI line and I believe the control is named "Hammer" again while the smartzone is instead named as "weapon".

Hopefully I haven't buggered up my advice.