This repository was archived by the owner on Dec 6, 2025. It is now read-only.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Updated nightly! ✔️
JSON
Easy installation
https://broncbotz3481.github.io/YAGSL-Lib/yagsl/yagsl.json)Easy configuration
SwerveDriveTelemetry.verbosityis 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-ExampleSwerveController.getTargetSpeeds) or passed directly to theSwerveDrivein the correct units.SwerveDrive.lockPosemoves all of the wheels to face inwards making the robot nearly impossible to move.SwerveDrive.setMotorIdleModeSwerveDrive.replaceSwerveModuleFeedforwardSwerveController.getTargetSpeedswithSwerveController.addSlewRateLimitersto improve control of the robot.Matterclass to limit velocity of the robot and prevent tipping.SwerveDrive.setMaximumSpeedandSwerveController.setMaximumAngularVelocityor utility functionsSwerveDrive.setMaximumSpeeds.SwerveDrive.chassisVelocityCorrectiononly affecting theSwerveDrive.drivefunctions.SwerveDrive.drive.SwerveDrive.pushOffsetsToControllersSafety Features
SwerveMath.limitVelocity.Odometry
SwerveDrive.updateOdometryshould be called periodically (every 20ms)SwerveDrive.updateOdometryis called every 20ms, the period can be changed viaSwerveDrive.setOdometryPeriod.SwerveDrive.stopOdometryThreadand update odometry in a periodic.SwerveDrive.zeroGyroSwerveDrive.getRobotVelocityand field-centric isSwerveDrive.getFieldVelocity.SwerveDrive.getPoseSwerveDrive.getGyroRotation3dorSwerveDrive.getYaw,SwerveDrive.getPitch,SwerveDrive.getRoll.SwerveDrive.addVisionMeasurementoptional standard deviation pass through.SwerveDrive.invertOdometryTelemetry
SwerveDrive.postTrajectorywhen testing.Beta Was this translation helpful? Give feedback.
All reactions