MCPcopy Create free account
hub / github.com/botbotrobotics/BotBrain / getCameraType

Function getCameraType

frontend/src/components/widgets/CameraWidget.tsx:99–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98 // Get the camera type to display based on current settings
99 const getCameraType = (): CameraType => {
100 if (dataSource === 'botbrain') {
101 return botbrainCamera === 'frontal' ? 'camera' : 'back';
102 } else if (dataSource === 'camcam') {
103 return camcamCamera; // 'thermal' or 'rgb'
104 }
105 return 'camera'; // fallback for topic mode
106 };
107
108 return (
109 <Widget

Callers 1

CameraWidgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected