Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Vision and Autonomous: Boilerplate FRCVision #22

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
4cdb62e
this code broke
KhanSimeoni Feb 9, 2022
66c1a0d
Remove mess
KenwoodFox Feb 9, 2022
19265eb
Fix api url
KenwoodFox Feb 9, 2022
0177d84
Fix formatting
KenwoodFox Feb 9, 2022
294e18f
Fix again
KenwoodFox Feb 9, 2022
9eaa9c1
Clean getencoder error
KenwoodFox Feb 9, 2022
5d40efe
Better logging
KenwoodFox Feb 9, 2022
0afbb40
Bump readme
KenwoodFox Feb 9, 2022
4af6d22
Add hyperlink+notes to readme
KenwoodFox Feb 9, 2022
25ebcb3
fixup! Add hyperlink+notes to readme
KenwoodFox Feb 9, 2022
fa2f118
Not the right ratio, but better than before
KenwoodFox Feb 9, 2022
72391ad
try something
KenwoodFox Feb 9, 2022
261c2ff
Fixup
KenwoodFox Feb 9, 2022
5e51095
Fix all, done
KenwoodFox Feb 9, 2022
16b20a7
Add comments to workflows
KenwoodFox Feb 9, 2022
283d7cc
refactor yaml
KenwoodFox Feb 9, 2022
bf29765
kinda works now
KhanSimeoni Feb 9, 2022
69faba5
better I thinkq
KhanSimeoni Feb 9, 2022
9292a94
still not working almost
KhanSimeoni Feb 9, 2022
95d0208
Add more networktables publushing, fix inital bugs with radian conver…
KenwoodFox Feb 10, 2022
3530cc2
Git blame
KenwoodFox Feb 10, 2022
212c0bb
More comments
KenwoodFox Feb 10, 2022
5138bda
Forgot to commit my comments last night, looks like we both commented…
KhanSimeoni Feb 10, 2022
a4cc346
Fork off from khan and work on implementing wpilib's on-rio PID loops
KenwoodFox Feb 11, 2022
4dbb8b9
Merge branch 'main' into bugfix/swerve
KenwoodFox Feb 11, 2022
6f88f03
Merge branch 'main' into bugfix/swerve
KenwoodFox Feb 11, 2022
d97cf02
Give the vision pi a static ip
KhanSimeoni Feb 12, 2022
6985248
Bugfix9 (#23)
Kredcool Feb 12, 2022
dff1e00
Merge branch 'main' into bugfix/swerve
KenwoodFox Feb 12, 2022
db835bb
Fix broken merge with
KenwoodFox Feb 12, 2022
401c15b
Fixes #24, unspolling on startup and steer ration
tbohlen Feb 13, 2022
8b9303a
Merge remote-tracking branch 'origin/bugfix/swerve' into feature/aivi…
KhanSimeoni Feb 13, 2022
f1e4944
made base vision file
Kredcool Feb 16, 2022
f802716
added __init__
Kredcool Feb 16, 2022
accde92
Merge branch 'feature/aivision' of https://github.com/FRC-1721/1721-R…
KhanSimeoni Feb 18, 2022
9b2f193
a
KhanSimeoni Feb 18, 2022
9ddb137
more
KhanSimeoni Feb 19, 2022
7f66936
limelight config
KhanSimeoni Mar 1, 2022
b413b5e
Clean limelight artifacts
KenwoodFox Mar 1, 2022
d56ea11
Bump gitignore
KenwoodFox Mar 1, 2022
b510833
Merge branch 'main' into feature/aivision
KenwoodFox Mar 1, 2022
c41f306
Need more than just cscore
KenwoodFox Mar 1, 2022
e98abf1
Update dependencies
KenwoodFox Mar 1, 2022
77bca55
limelight follower
KhanSimeoni Mar 2, 2022
89da38e
Not sure why that was there
KenwoodFox Mar 2, 2022
ad23dde
Cleanup ip list
KenwoodFox Mar 2, 2022
4e69583
Merge branch 'feature/aivision' of https://github.com/FRC-1721/1721-R…
KhanSimeoni Mar 2, 2022
b375a5f
we gonna break
KhanSimeoni Mar 3, 2022
a1fa8aa
couple bad networktable lookups,fixed now
KhanSimeoni Mar 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ __pycache__
_build
*.*~
.python-version
*.whl

# dashboard build files
dashboard/www/main.js*
Expand Down
3 changes: 3 additions & 0 deletions dashboard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ run:
comp:
cd www && python -m pynetworktables2js --robot 10.17.21.2 --port=5800

comp:
cd www && python -m pynetworktables2js --robot 10.17.21.2

clean:
git clean -fdX

Expand Down
6 changes: 3 additions & 3 deletions docs/wiring/resources/iplist.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Hostname,mDNS,IP
Hostname,mDNS,IP
roborio,I forget,10.17.21.2
nuc,,10.17.21.11
limelight,TBD,TBD
aivision,TBD,TBD
limelight,,10.17.21.13
frcvision,,10.17.21.12
driverstation,,DHCP
64 changes: 64 additions & 0 deletions limelight/pipelines/ActivePipeline.vpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
area_max:100
area_min:0.0017850625000000004
area_similarity:0
aspect_max:20.000000
aspect_min:0.000000
black_level:6
blue_balance:2243
calibration_type:0
contour_grouping:0
contour_sort_final:2
convexity_max:100
convexity_min:10
corner_approx:5.000000
cross_a_a:1
cross_a_x:0
cross_a_y:0
cross_b_a:1
cross_b_x:0
cross_b_y:0
desc:Pipeline_Name
desired_contour_region:0
dilation_steps:0
direction_filter:0
dual_close_sort_origin:0
erosion_steps:0
exposure:2
force_convex:1
hue_max:85
hue_min:60
image_flip:0
image_source:0
img_to_show:0
intersection_filter:0
invert_hue:0
multigroup_max:7
multigroup_min:1
multigroup_rejector:0
pipeline_led_enabled:1
pipeline_led_power:100
pipeline_res:0
pipeline_type:0
red_balance:500
roi_x:0.000000
roi_y:0.000000
sat_max:255
sat_min:70
send_corners:0
send_raw_contours:0
solve3d:0
solve3d_algo:0
solve3d_bindtarget:1
solve3d_conf:0.990000
solve3d_error:8
solve3d_guess:0
solve3d_iterations:50
solve3d_precies:1
solve3d_precise:0
solve3d_zoffset:0.000000
val_max:255
val_min:70
x_outlier_miqr:1.5
y_max:1.000000
y_min:-1.000000
y_outlier_miqr:1.5
92 changes: 46 additions & 46 deletions rio/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added rio/autonomous/__init__.py
Empty file.
20 changes: 20 additions & 0 deletions rio/autonomous/vision.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import commands2
import constants

from networktables import NetworkTables

from subsystems.drivetrain import Drivetrain
from subsystems.yoke import Yoke


class vision(commands2.SequentialCommandGroup):
"""
A vision command
"""

def __init__(self, drive: Drivetrain, yoke: Yoke):
super().__init__()
NetworkTables.getTable("limelight").getNumber("<variablename>")

def camera(self):
pass
Empty file added rio/commands/yoke_tracker.py
Empty file.
2 changes: 1 addition & 1 deletion rio/subsystems/drivetrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 2022

import math

import logging

from wpilib import RobotBase
import wpilib
Expand Down