Skip to content

Commit

Permalink
cleanup: Comments and removals
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Dec 19, 2024
1 parent 73880d5 commit 44f6b94
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
13 changes: 0 additions & 13 deletions fission/src/mirabuf/MirabufSceneObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,19 +570,6 @@ class MirabufSceneObject extends SceneObject implements ContextSupplier {
})
}

// if (this.miraType == MiraType.ROBOT) {
// const brainIndex = (this.brain as SynthesisBrain)?.brainIndex
// if (brainIndex != undefined) {
// data.items.push({
// name: "Set Scheme",
// func: () => {
// setSpotlightAssembly(this)
// Global_OpenPanel?.("choose-scheme")
// },
// })
// }
// }

if (World.SceneRenderer.currentCameraControls.controlsType == "Orbit") {
const cameraControls = World.SceneRenderer.currentCameraControls as CustomOrbitControls
if (cameraControls.focusProvider == this) {
Expand Down
10 changes: 10 additions & 0 deletions fission/src/systems/simulation/Nora.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/**
* To build input validation into the node editor, I had to
* make this poor man's type system. Please make it better.
*
* We should be able to assign identifiers to the types and
* probably have more in-tune mechanisms for handling the
* junction situations. Right now its kinda patched together
* with the averaging function setup I have below.
*/

export enum NoraTypes {
Number = "num",
Number2 = "(num,num)",
Expand Down
8 changes: 8 additions & 0 deletions fission/src/ui/components/BespokeGraph.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/**
* This was originally written before using ReactFlow for the node editor.
* It's mostly working (missing some interaction aspects) and does some
* interesting work with SVGs that I think would be really useful for a
* more advance 2D overlay for directing the users attention to key points
* in the 3D scene.
*/

import { DOMUnitExpression } from "@/util/Units"
import { useCallback, useEffect, useMemo, useReducer, useRef } from "react"
import { colorNameToVar } from "../ThemeContext"
Expand Down
5 changes: 5 additions & 0 deletions fission/src/ui/panels/WSViewPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* TODO: I don't have the time but this whole thing needs to be remade to
* make debugging signal data easier.
*/

import Panel, { PanelPropsImpl } from "@/components/Panel"
import { SimGeneric, SimType } from "@/systems/simulation/wpilib_brain/WPILibBrain"
import {
Expand Down

0 comments on commit 44f6b94

Please sign in to comment.