Skip to content

feat: more useful default page#30

Merged
ConnorNeed merged 1 commit into
mainfrom
Grand-Junction
May 26, 2026
Merged

feat: more useful default page#30
ConnorNeed merged 1 commit into
mainfrom
Grand-Junction

Conversation

@ConnorNeed
Copy link
Copy Markdown
Member

feat: 240 sample option for science readings
feat: eef distance display

feat: 240 sample option for science readings
feat: eef distance display
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the default UI experience by expanding telemetry graph sample window options, adjusting the default mosaic dashboard layout to surface more useful panels, and adding end-effector distance readout to the arm control panel.

Changes:

  • Added a 240-sample option to the telemetry graph window-size selector.
  • Updated the default MosaicDashboard layout to prioritize waypoint list, PDB rails, ESP sensor, and arm control panels.
  • Subscribed to /eef_distance in ArmControlPanel and displayed a derived distance value in the UI.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/components/TelemetryGraph.tsx Adds a 240-sample window option to improve longer-range telemetry viewing.
src/components/panels/MosaicDashboard.tsx Changes the default tile layout to show different panels by default.
src/components/panels/ArmControlPanel.tsx Adds ROS subscription and UI display for end-effector distance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +50 to +53
const handleDistance = (msg: any) => {
setDistance(msg.distance);
setDistanceStatus(msg.status);
};
Comment on lines +65 to +70
const distance_with_offset = distance - GRIPPER_OFFSET;

if (distanceStatus === 1) return `Error (${distance_with_offset.toFixed(3)})`;
if (distanceStatus === 2) return `Invalid (${distance_with_offset.toFixed(3)})`;

return distance_with_offset.toFixed(3);
Comment on lines +62 to +69
const getDistanceDisplay = () => {
const GRIPPER_OFFSET = 0.18;
if (distance === null) return 'No data';
const distance_with_offset = distance - GRIPPER_OFFSET;

if (distanceStatus === 1) return `Error (${distance_with_offset.toFixed(3)})`;
if (distanceStatus === 2) return `Invalid (${distance_with_offset.toFixed(3)})`;

@ConnorNeed ConnorNeed merged commit c9036bc into main May 26, 2026
2 checks passed
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