.
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ type MotionType = 'FORWARD' | 'REVERSE' | 'TURN_LEFT' | 'TURN_RIGHT' | 'STOP';
|
|||||||
type TrajectoryStep = { x: number; y: number; target_ticks_l: number; target_ticks_r: number; motion?: MotionType; };
|
type TrajectoryStep = { x: number; y: number; target_ticks_l: number; target_ticks_r: number; motion?: MotionType; };
|
||||||
|
|
||||||
export default function RobotDashboard() {
|
export default function RobotDashboard() {
|
||||||
const PI_IP = '192.168.0.105';
|
const PI_IP = '192.168.11.110';
|
||||||
const streamUrl = `http://${PI_IP}:8080/stream`;
|
const streamUrl = `http://${PI_IP}:8080/stream`;
|
||||||
|
|
||||||
const [isLoading, setIsLoading] = useState(true);
|
const [isLoading, setIsLoading] = useState(true);
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"x": 1,
|
||||||
|
"y": 0,
|
||||||
|
"target_ticks_l": 57,
|
||||||
|
"target_ticks_r": 58,
|
||||||
|
"motion": "TURN_RIGHT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": -1,
|
||||||
|
"y": 0,
|
||||||
|
"target_ticks_l": 6,
|
||||||
|
"target_ticks_r": 6,
|
||||||
|
"motion": "TURN_LEFT"
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user