Skip to content

Commit

Permalink
IOS - WE WON! (#76)
Browse files Browse the repository at this point in the history
* install pathplanner lib

* install pathPlanner lib

* commit

* the robot is driving to the wrong side

* Swerve cleanup and minor changes

* fixed incorrect driving with on-the-fly traj generator

* moved path generation to AutpBuilder & clean up swerve class

* organised the swerve subsystem a bit

* run SysId on cuber shooter and updated constants

* minor code changes and encoder recalibration

* added button to switch motors to coast mode

* idk, i did stuff with the cuber

* tuned cuber shooter w/ pid & ff, also reorganised the button layout

* update button layout

* update button layout txt

* added automatic "CANNON" mode for cuber

* switched cannon mode from while held to toggle on true

* add Coast mode to driver controller

* update operator button layout

* update arm constants

* update arm constants

* general fixes and improvements to the code

* add oscillations to the arm, and

* update roller gripper back to a sparkMax

* mainer changes

* commit

* calibrated cuber angle

* fix isAtRevSoftLimit

* finished the synchronization between the cuber and the arm -- NEEDS TESTING

* MorseToLeds *sadge emoji*

* fixed adjustForShooterCommand

* moved shuffleboard data to a separate function that is called from the constructor

* shine leds green when cuber is ready to fire

* misc

* Update Rollergripper.java

* removed auto arm locking

* misc

* re tuned cuber

* this is for you lavi

* this is for you lavi

* the auto shync shit works

* general robot tuning and improvement

* general robot tuning and adjustments

* stufff

* climb over ramp

* auto day in HaDream team's field

* orbit day

* removed proxy command from arm length

* place to lower in auto

* final code before IOS

* training match

* **

* roller gripper sparkmax

* arm doesnt lock on plexi

* end of IOS day 1

* alliance selection

* end of IOS day 2 - we WON!

---------

Co-authored-by: Excalibur FRC | 6738 <excaliburfrc@gmail.com>
  • Loading branch information
TapChap and ExcaliburFRC6738 authored Oct 5, 2023
1 parent 9a02f00 commit 88cdcaf
Show file tree
Hide file tree
Showing 27 changed files with 1,621 additions and 870 deletions.
7 changes: 7 additions & 0 deletions .pathplanner/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"robotWidth": 0.56665,
"robotLength": 0.56665,
"holonomicMode": true,
"generateJSON": false,
"generateCSV": false
}
42 changes: 42 additions & 0 deletions cuberConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"canivore names": [
"rio"
],
"counts per rotation": 1.0,
"encoder canivore name": "rio",
"encoder type": "Encoder Port",
"encoding": false,
"gearing denominator": 1.0,
"gearing numerator": 187.7142,
"gyro": "Analog Gyro",
"gyro canivore name": "rio",
"gyro ctor": "0",
"is drivetrain": false,
"motor controllers": [
"SPARK MAX (Brushless)"
],
"number of samples per average": 8,
"primary encoder inverted": false,
"primary encoder ports": [
0,
1
],
"primary motor ports": [
41
],
"primary motors inverted": [
false
],
"secondary encoder inverted": false,
"secondary encoder ports": [
2,
3
],
"secondary motor ports": [
2
],
"secondary motors inverted": [
false
],
"velocity measurement period": 8
}
49 changes: 49 additions & 0 deletions src/main/deploy/pathplanner/Bcollect1Cube.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 1.7763183603290305,
"y": 0.5010160020320052
},
"prevControl": null,
"nextControl": {
"x": 3.3660806744690426,
"y": 0.5010160020320052
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 7.0755260741290735,
"y": 0.915317696020008
},
"prevControl": {
"x": 6.0253194544850635,
"y": 1.011666927180009
},
"nextControl": null,
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
99 changes: 99 additions & 0 deletions src/main/deploy/pathplanner/Bcollect4Cube.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 1.7666834372130304,
"y": 4.933080635392041
},
"prevControl": null,
"nextControl": {
"x": 3.0866679041050413,
"y": 4.605493249448038
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 7.3453039213770746,
"y": 5.2799378675680435
},
"prevControl": {
"x": 7.307655980904036,
"y": 6.823503426962679
},
"nextControl": {
"x": 7.364573767609074,
"y": 4.4898741720560364
},
"holonomicAngle": -62.78388844269248,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 5.399049451945059,
"y": 4.894540942928041
},
"prevControl": {
"x": 5.805752025793519,
"y": 4.814968700218559
},
"nextControl": {
"x": 4.955842988609056,
"y": 4.981255250972041
},
"holonomicAngle": 73.85566121971658,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 1.7666834372130304,
"y": 4.412794787128036
},
"prevControl": {
"x": 2.826524979973039,
"y": 5.029429866552041
},
"nextControl": null,
"holonomicAngle": 180.0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
49 changes: 49 additions & 0 deletions src/main/deploy/pathplanner/Bintake5Cube.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 14.802734413161136,
"y": 4.91381078916004
},
"prevControl": null,
"nextControl": {
"x": 12.84727110137859,
"y": 4.021845067996073
},
"holonomicAngle": 180.0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 11.64371663978706,
"y": 6.003615430911319
},
"prevControl": {
"x": 12.421327781314622,
"y": 5.317487953092882
},
"nextControl": null,
"holonomicAngle": 128.07278187399083,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
49 changes: 49 additions & 0 deletions src/main/deploy/pathplanner/Rintake5Cube.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 1.7763183603290305,
"y": 4.90417586604404
},
"prevControl": null,
"nextControl": {
"x": 3.5491442136730447,
"y": 4.345350325316036
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 5.090731912233057,
"y": 5.8483983314120485
},
"prevControl": {
"x": 4.28139837048905,
"y": 5.357017252496044
},
"nextControl": null,
"holonomicAngle": 32.73522627210754,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
Loading

0 comments on commit 88cdcaf

Please sign in to comment.