Skip to content

Commit

Permalink
update photonlib + add some simulation (#20)
Browse files Browse the repository at this point in the history
* update photonlib

* fix formatting

* update photon vision code

* update to logged selection

* convert all auto movement to on the fly path creation

* multi cam yay

* Added simulated motors

* add gyro sim support

* Add rest simulated motors

- Create simulated motors for flywheel simulated
- Create simulated motors for lifter subsystem

* add note

* Created Elevator Subsystem + Simulated Encoders

- Elevator Subsystem (TODO: Update values)
- Added simulated encoders in Flywheel subsystem

* add simulation to drivetrain

* Change to Elevator Feed

* Add elevator command

* add simulation to elevator

* Update ElevatorSubsystem.java

* Created arm subsystem and command

* Changes

* fix amp reading

* working numbers

* Update ArmSubsystem.java

* camera sim???

* Working sim???????

* Created Turntable subsystem + command

- Need to setup simulator

* Fix Simulated Gyro

- Still need to correct PID and other values in new files for it to simulate "properly"

* make physics engine

* Update DriveConstants.java

* no drive cam

* Create simulation subpackage

- Moved TurntableSim into SImulation subpackage

* Change constants to camelcase

* Fixed intermediate pose at aimCommand

* Formatting

- Snaked cased CAN constants
- Fixed rest of constants

* extracted camera processing to own function

* Javadocs

- Added javadocs to functions in  CameraSubsystem, Aimcommand, and DriveSubsystem
- Fixed javadocs for other subsystems

* Formatted navgrid & simulatiom ui

* Format simui again

* vision model correction

* fix cam code

* fix format

---------

Co-authored-by: Iooob <[email protected]>
  • Loading branch information
jack60612 and Iooob authored Jan 21, 2025
1 parent f12da83 commit 89a98a9
Show file tree
Hide file tree
Showing 28 changed files with 3,475 additions and 719 deletions.
80 changes: 80 additions & 0 deletions simgui-ds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"System Joysticks": {
"window": {
"enabled": false
}
},
"keyboardJoysticks": [
{
"axisConfig": [
{
"decKey": 65,
"incKey": 68
},
{
"decKey": 87,
"incKey": 83
},
{
"decKey": 69,
"decayRate": 0.0,
"incKey": 82,
"keyRate": 0.009999999776482582
}
],
"axisCount": 3,
"buttonCount": 4,
"buttonKeys": [90, 88, 67, 86],
"povConfig": [
{
"key0": 328,
"key135": 323,
"key180": 322,
"key225": 321,
"key270": 324,
"key315": 327,
"key45": 329,
"key90": 326
}
],
"povCount": 1
},
{
"axisConfig": [
{
"decKey": 74,
"incKey": 76
},
{
"decKey": 73,
"incKey": 75
}
],
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [77, 44, 46, 47],
"povCount": 0
},
{
"axisConfig": [
{
"decKey": 263,
"incKey": 262
},
{
"decKey": 265,
"incKey": 264
}
],
"axisCount": 2,
"buttonCount": 6,
"buttonKeys": [260, 268, 266, 261, 269, 267],
"povCount": 0
},
{
"axisCount": 0,
"buttonCount": 0,
"povCount": 0
}
]
}
Loading

0 comments on commit 89a98a9

Please sign in to comment.