Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions src/components/panels/MosaicDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import WebRTCClient from './WebRTCClient';
import TimerPanel from './TimerPanel';
import HeadlightControlPanel from './HeadlightControlPanel';
import MorseTransmissionPanel from './MorseTransmissionPanel';
import RtpStats from './RtpStats';
import TopicEchoPanel from './TopicEchoPanel';

import { ROVER_IP } from '@/constants';
Expand All @@ -37,6 +38,7 @@ type TileType =
| 'rosMonitor'
| 'waypointList'
| 'videoControls'
| 'rtpStats'
| 'gasSensor'
| 'orientationDisplay'
| 'goalSetter'
Expand All @@ -62,6 +64,7 @@ const TILE_DISPLAY_NAMES: Record<TileType, string> = {
rosMonitor: 'System Telemetry',
waypointList: 'Waypoint List',
videoControls: 'Video Stream',
rtpStats: 'RTP Statistics',
gasSensor: 'Science',
orientationDisplay: 'Rover Orientation',
goalSetter: 'Nav2',
Expand All @@ -86,6 +89,7 @@ const ALL_TILE_TYPES: TileType[] = [
'networkHealthMonitor',
'orientationDisplay',
'videoControls',
'rtpStats',
'waypointList',
'gasSensor',
'goalSetter',
Expand Down Expand Up @@ -373,6 +377,13 @@ const MosaicDashboard: React.FC = () => {
<VideoControls />
</MosaicWindow>
);

case 'rtpStats':
return (
<MosaicWindow {...windowProps}>
<RtpStats />
</MosaicWindow>
);

case 'rosMonitor':
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const RtpStats: React.FC = () => {
}}
>
<h2 style={{ margin: 0, fontSize: "1.1rem", color: "#f1f1f1" }}>
SRT Stats:
RTP Stats:
</h2>
</div>
<div
Expand Down
2 changes: 0 additions & 2 deletions src/components/panels/VideoControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import VideoCustomPresetForm from "../VideoCustomPresetForm";
import ROSLIB from "roslib";
import { useROS } from "@/ros/ROSContext";
import VideoPresetsPanel from "../VideoPresetsPanel";
import RtpStats from "../RtpStats";
import toast from "react-hot-toast";

export interface VideoSource {
Expand Down Expand Up @@ -277,7 +276,6 @@ const VideoControls: React.FC = () => {
<VideoPresetsPanel onPresetSelect={(name, preset) => newPreset(name, preset)} />
</div>
</div>
<RtpStats />
</div>

<div style={{ height: "100%", overflow: "auto", flex: 1, minWidth: 0 }}>
Expand Down
Loading