Skip to content

Commit

Permalink
obstacle telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Sep 27, 2024
1 parent 9d339c7 commit d558a75
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion humanInterface/driverInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def update(self):

self.navToSpeaker = self.ctrl.getBButton()
self.navToPickup = self.ctrl.getXButton()
self.createObstacle = self.ctrl.getRightBumper()
self.createObstacle = self.ctrl.getYButtonPressed()

self.connectedFault.setNoFault()

Expand Down
2 changes: 2 additions & 0 deletions navigation/repulsorFieldPlanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def getObstacleTransList(self) -> list[Translation2d]:
retArr = []
for obstacle in self.fixedObstacles:
retArr.extend(obstacle.getTelemTrans())
for obstacle in self.transientObstcales:
retArr.extend(obstacle.getTelemTrans())

return retArr

Expand Down
Binary file added obstacle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 11 additions & 3 deletions simgui-ds.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"Keyboard 0 Settings": {
"window": {
"visible": true
}
},
"keyboardJoysticks": [
{
"axisConfig": [
Expand All @@ -21,12 +26,15 @@
}
],
"axisCount": 6,
"buttonCount": 4,
"buttonCount": 7,
"buttonKeys": [
90,
88,
67,
86
86,
66,
78,
77
],
"povConfig": [
{
Expand Down Expand Up @@ -56,7 +64,7 @@
"axisCount": 2,
"buttonCount": 4,
"buttonKeys": [
77,
-1,
44,
46,
47
Expand Down
2 changes: 2 additions & 0 deletions simgui.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
0.02998846210539341,
255.0
],
"image": "obstacle.png",
"length": 0.6859999895095825,
"selectable": false,
"style": "Box/Image",
"weight": 16.0
Expand Down

0 comments on commit d558a75

Please sign in to comment.