refactor: rename zoom commands to use camelCase in API and PTZ control

This commit is contained in:
2026-01-13 14:50:26 +08:00
parent ffb3fc423e
commit ff4ddfacba
4 changed files with 5 additions and 7 deletions

View File

@ -15,8 +15,6 @@ var (
"upleft": 10,
"zoomin": 16,
"zoomout": 32,
"zoom_in": 16,
"zoom_out": 32,
}
ptzSpeedMap = map[string]uint8{

View File

@ -159,7 +159,7 @@ func TestPTZCmdMap(t *testing.T) {
// 验证所有预定义的命令都存在
expectedCommands := []string{
"stop", "right", "left", "down", "downright", "downleft",
"up", "upright", "upleft", "zoomin", "zoomout", "zoom_in", "zoom_out",
"up", "upright", "upleft", "zoomin", "zoomout",
}
for _, cmd := range expectedCommands {