diff --git a/bot4cj/scripts/jump.py b/bot4cj/scripts/jump.py index 75c143f..c116ac6 100644 --- a/bot4cj/scripts/jump.py +++ b/bot4cj/scripts/jump.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/left-hand.py b/bot4cj/scripts/left-hand.py index 562e805..d460b36 100644 --- a/bot4cj/scripts/left-hand.py +++ b/bot4cj/scripts/left-hand.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/left-turn.py b/bot4cj/scripts/left-turn.py index 25f0d56..2059564 100644 --- a/bot4cj/scripts/left-turn.py +++ b/bot4cj/scripts/left-turn.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/lie-down.py b/bot4cj/scripts/lie-down.py index 2c7677b..4662d48 100644 --- a/bot4cj/scripts/lie-down.py +++ b/bot4cj/scripts/lie-down.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/rght-hand.py b/bot4cj/scripts/rght-hand.py index f95026b..0a7555d 100644 --- a/bot4cj/scripts/rght-hand.py +++ b/bot4cj/scripts/rght-hand.py @@ -33,6 +33,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/std.py b/bot4cj/scripts/std.py index 81dda8f..2662933 100644 --- a/bot4cj/scripts/std.py +++ b/bot4cj/scripts/std.py @@ -37,6 +37,9 @@ Servo("s8", -180, 0, 0, "pca9685-0", 7) # rf1 Servo("s9", 180, 0, 0, "pca9685-0", 8) # cam0 Servo("s10", 180, 0, 0, "pca9685-0", 9) # cam1 +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + # stand:10ms(一个栅格步)内到位并保持;首行即目标值,无爬升 SetTo("s1", 45, 10) SetTo("s2", 0, 10) diff --git a/bot4cj/scripts/stdd.py b/bot4cj/scripts/stdd.py index d7f382e..81f65e8 100644 --- a/bot4cj/scripts/stdd.py +++ b/bot4cj/scripts/stdd.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/t0.py b/bot4cj/scripts/t0.py index 8c8ada7..3dc48ca 100644 --- a/bot4cj/scripts/t0.py +++ b/bot4cj/scripts/t0.py @@ -26,6 +26,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/tilt-b.py b/bot4cj/scripts/tilt-b.py index 868775e..dfc26b6 100644 --- a/bot4cj/scripts/tilt-b.py +++ b/bot4cj/scripts/tilt-b.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/tilt-f.py b/bot4cj/scripts/tilt-f.py index a35140a..4332dc2 100644 --- a/bot4cj/scripts/tilt-f.py +++ b/bot4cj/scripts/tilt-f.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/tilt-l.py b/bot4cj/scripts/tilt-l.py index 00f3bab..aa73420 100644 --- a/bot4cj/scripts/tilt-l.py +++ b/bot4cj/scripts/tilt-l.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10): diff --git a/bot4cj/scripts/tilt-r.py b/bot4cj/scripts/tilt-r.py index 4f92a57..505595c 100644 --- a/bot4cj/scripts/tilt-r.py +++ b/bot4cj/scripts/tilt-r.py @@ -32,6 +32,9 @@ _SERVOS = [("s1", 90, 0), # rb0 for _name, _max, _ch in _SERVOS: Servo(_name, _max, 0, 0, "pca9685-0", _ch) +# 录制源(pybot --record 需要 @Camera 块) +Camera("cam0", 640, 480, 30, 8) + _STAND = [45, 0, 45, 0, 45, 0, 45, 0, 90, 90] def stand(dur=10):