diff --git a/src/config.js b/src/config.js index bf5bc2d..aa8f381 100644 --- a/src/config.js +++ b/src/config.js @@ -19,5 +19,12 @@ export const WHEEL_SEPARATION = 0.2 // 轮距(m) export const GIMBAL_PITCH_DEG_S = 10 export const GIMBAL_YAW_DEG_S = 10 +// HTTP API 端点 +export const API_GIMBAL_MODE_SWITCH = `${HTTP_API_BASE}/api/gimbal/mode/switch` +export const API_CHASSIS_MODE_SWITCH = `${HTTP_API_BASE}/api/chassis/mode/switch` +export const API_LASER = `${HTTP_API_BASE}/api/laser` +export const API_GIMBAL_PID_CONFIG = `${HTTP_API_BASE}/api/gimbal/pidconfig` +export const API_CHASSIS_PID_CONFIG = `${HTTP_API_BASE}/api/chassis/pidconfig` + // 发布频率 export const PUBLISH_RATE = 30 // Hz diff --git a/src/views/AutoMode.vue b/src/views/AutoMode.vue index 506e94a..64264fd 100644 --- a/src/views/AutoMode.vue +++ b/src/views/AutoMode.vue @@ -2,7 +2,8 @@

自动模式

- + +
MJPEG Stream @@ -13,7 +14,7 @@ diff --git a/src/views/DebugMode.vue b/src/views/DebugMode.vue index c69c31c..65ac932 100644 --- a/src/views/DebugMode.vue +++ b/src/views/DebugMode.vue @@ -4,36 +4,89 @@

调试模式

-
- - - +
+

云台

+
+ + + +
+
+
+

视觉环 Yaw 电机

+ + + +
+
+

视觉环 Pitch 电机

+ + + +
+
+

角度环 Yaw 电机

+ + + +
+
+

角度环 Pitch 电机

+ + + +
+
+
+ + +
-
-
-

视觉环 Yaw 电机

- - - +
+

底盘

+
+ + +
-
-

视觉环 Pitch 电机

- - - +
+
+

速度环 左电机

+ + + +
+
+

速度环 右电机

+ + + +
+
+

角度环

+ + + +
+
+

位置环

+ + + +
-
-

角度环 Yaw 电机

- - - -
-
-

角度环 Pitch 电机

- - - +
+ +
@@ -44,12 +97,6 @@ - -
@@ -61,7 +108,11 @@