Skip to content

Commit

Permalink
Added CANandGyro to the config generator, removed pushOffsetsToEncode…
Browse files Browse the repository at this point in the history
…rs default.

Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
  • Loading branch information
thenetworkgrinch committed Jan 9, 2025
1 parent bb9ff63 commit cce71d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .run/Debug Robot via IP.run.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Debug Robot via IP" type="Remote">
<method v="2"/>
<module name="YAGSL-Example.main"/>
<option name="USE_SOCKET_TRANSPORT" value="true"/>
<option name="SERVER_MODE" value="false"/>
<option name="SHMEM_ADDRESS" value="javadebug"/>
<option name="HOST" value="10.34.81.2"/>
<option name="PORT" value="8349"/>
<option name="AUTO_RESTART" value="false"/>
<option name="USE_SOCKET_TRANSPORT" value="true"/>
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="8349"/>
<option name="LOCAL" value="false"/>
</RunnerSettings>
<method v="2"/>
</configuration>
</component>
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h1 class="d-inline display-6">Swerve Drive</h1>
<select class="form-select" id="imu_type-input" name="imu_type">
<option selected value="pigeon">Pigeon</option>
<option value="pigeon2">Pigeon2</option>
<option value="canandgyro">CanAndGyro</option>
<option value="navx">NavX</option>
<option value="navx_usb">NavX via USB</option>
<option value="navx_spi">NavX via SPI</option>
Expand Down
2 changes: 1 addition & 1 deletion docs/schemas/controllerproperties_schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://broncbotz3481.github.io/YAGSL-Example/schemas/controllerproperties_schema.json",
"description": "",
"description": "Controller Properties used within SwerveController",
"type": "object",
"properties": {
"angleJoystickRadiusDeadband": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public SwerveSubsystem(File directory)
0.1); //Correct for skew that gets worse as angular velocity increases. Start with a coefficient of 0.1.
swerveDrive.setModuleEncoderAutoSynchronize(false,
1); // Enable if you want to resynchronize your absolute encoders and motor encoders periodically when they are not moving.
swerveDrive.pushOffsetsToEncoders(); // Set the absolute encoder to be used over the internal encoder and push the offsets onto it. Throws warning if not possible
// swerveDrive.pushOffsetsToEncoders(); // Set the absolute encoder to be used over the internal encoder and push the offsets onto it. Throws warning if not possible
if (visionDriveTest)
{
// setupPhotonVision();
Expand Down

0 comments on commit cce71d0

Please sign in to comment.