Skip to content

Commit a02cbf6

Browse files
committed
Add video feed to teleop modal
1 parent 133ae56 commit a02cbf6

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

feedingwebapp/src/Pages/Header/InfoModal.jsx

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,41 @@ function InfoModal(props) {
124124
{mode === VIDEO_MODE ? (
125125
<VideoFeed topic={CAMERA_FEED_TOPIC} updateRateHz={10} webrtcURL={props.webrtcURL} />
126126
) : mode === TELEOP_MODE ? (
127-
<TeleopSubcomponent allowIncreasingForceThreshold={true} allowRetaringFTSensor={true} />
127+
<View
128+
style={{
129+
flex: 1,
130+
flexDirection: 'column',
131+
justifyContent: 'center',
132+
alignItems: 'center',
133+
width: '100%',
134+
height: '100%'
135+
}}
136+
>
137+
<View
138+
style={{
139+
flex: 5,
140+
flexDirection: 'column',
141+
justifyContent: 'center',
142+
alignItems: 'center',
143+
width: '100%',
144+
height: '100%'
145+
}}
146+
>
147+
<VideoFeed topic={CAMERA_FEED_TOPIC} updateRateHz={10} webrtcURL={props.webrtcURL} />
148+
</View>
149+
<View
150+
style={{
151+
flex: 7,
152+
flexDirection: 'column',
153+
justifyContent: 'center',
154+
alignItems: 'center',
155+
width: '100%',
156+
height: '100%'
157+
}}
158+
>
159+
<TeleopSubcomponent allowIncreasingForceThreshold={true} allowRetaringFTSensor={true} />
160+
</View>
161+
</View>
128162
) : mode === SYSTEM_STATUS_MODE ? (
129163
<div>System Status</div>
130164
) : (

0 commit comments

Comments
 (0)