Skip to content

Big Science stuff + extra#13

Open
OjasPunje wants to merge 6 commits intomainfrom
ojas-branch
Open

Big Science stuff + extra#13
OjasPunje wants to merge 6 commits intomainfrom
ojas-branch

Conversation

@OjasPunje
Copy link
Copy Markdown
Contributor

Added Science GUI Stylistically. Added an Indicator for when location is reached. Added ROS2 command buttons for quick ros2 command access for drive (placeholders for now) and for Arm (switch to joint by joint or cylindrical control). Changed Camera Layout to fit the rover.

@OjasPunje OjasPunje requested a review from mdurrani808 May 3, 2026 20:09
Copy link
Copy Markdown
Contributor

@mdurrani808 mdurrani808 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very vague look at this, had chat help

};

const resetStopwatch = () => {
stopwatchStartRef.current = Date.now();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this correct? why is the current time now when resetting if it isnt running?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chat said this:

  1. Components defined inside render (ScienceMonitor.js)
    CameraCard and CameraImage are declared inside the component body. React creates new component
    identities on every render, causing camera feeds to unmount/remount (drop and reconnect) on any
    state change. Lift them outside the component.

pc.addIceCandidate({ candidate: msg.candidate, sdpMLineIndex: msg.sdpMLineIndex }).catch(() => {});
pc.addIceCandidate({
candidate: msg.candidate,
sdpMLineIndex: msg.sdpMLineIndex ?? msg.mlineIndex ?? 0,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why default to 0 here? Could be a valid index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants