YAGSL Features #29
Pinned
thenetworkgrinch
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Updated nightly! ✔️
JSON
Easy installation
https://broncbotz3481.github.io/YAGSL-Lib/yagsl/yagsl.json
)Easy configuration
SwerveDriveTelemetry.verbosity
is used to control what telemetry data is sent back and can be used for optimizations.Documentation
Hardware Support
Motors
Absolute Encoders
IMUs (Gyroscopes)
ALL GYROSCOPES MUST BE COUNTER-CLOCKWISE POSITIVE!
Simulation
YAGSl-Example
.Control
YAGSL-Example
SwerveController.getTargetSpeeds
) or passed directly to theSwerveDrive
in the correct units.SwerveDrive.lockPose
moves all of the wheels to face inwards making the robot nearly impossible to move.SwerveDrive.setMotorIdleMode
SwerveDrive.replaceSwerveModuleFeedforward
SwerveController.getTargetSpeeds
withSwerveController.addSlewRateLimiters
to improve control of the robot.Matter
class to limit velocity of the robot and prevent tipping.SwerveDrive.setMaximumSpeed
andSwerveController.setMaximumAngularVelocity
or utility functionsSwerveDrive.setMaximumSpeeds
.SwerveDrive.chassisVelocityCorrection
only affecting theSwerveDrive.drive
functions.SwerveDrive.drive
.SwerveDrive.pushOffsetsToControllers
Safety Features
SwerveMath.limitVelocity
.Odometry
SwerveDrive.updateOdometry
should be called periodically (every 20ms)SwerveDrive.updateOdometry
is called every 20ms, the period can be changed viaSwerveDrive.setOdometryPeriod
.SwerveDrive.stopOdometryThread
and update odometry in a periodic.SwerveDrive.zeroGyro
SwerveDrive.getRobotVelocity
and field-centric isSwerveDrive.getFieldVelocity
.SwerveDrive.getPose
SwerveDrive.getGyroRotation3d
orSwerveDrive.getYaw
,SwerveDrive.getPitch
,SwerveDrive.getRoll
.SwerveDrive.addVisionMeasurement
optional standard deviation pass through.SwerveDrive.invertOdometry
Telemetry
SwerveDrive.postTrajectory
when testing.Beta Was this translation helpful? Give feedback.
All reactions