CAPS-Robotics / 2024-Swerve-concept

Describing Swerve functionality, mockup math

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swerve-concept

process

  • Roborio starts with the inital values on start, along with the xbox values
  • sends the values to the motor
  • the encoders and sensors give the motor controllers nesc. values
  • The motor controllers (All at the same time, parallel), do the swerve math, (look at swerveMath.py*, also article)
  • move all the motors
  • Roborio constantly broadcasts Xbox values, motors move

Imp. Note: The motors don't need to complete a movement to do the next movement, they move whenever they recieve an xbox value


red(Rio) Orange(Motor Controller)

Screen Shot 2024-01-27 at 10 44 06 AM

*swerveMath.py contains raw equations, Wpilib/Rev has abstractions

About

Describing Swerve functionality, mockup math


Languages

Language:Python 100.0%