update ramp time limits
This commit is contained in:
parent
eb7cb3f28c
commit
6088239226
@ -220,9 +220,9 @@ def pack_set_speed_command(
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
if ramp_time_ms < 0 or (
|
if ramp_time_ms < 0 or (
|
||||||
ramp_time_ms > 0 and (ramp_time_ms > 10000 or ramp_time_ms < 10)
|
ramp_time_ms > 0 and (ramp_time_ms > 20000 or ramp_time_ms < 10)
|
||||||
):
|
):
|
||||||
raise ValueError("Invalid Ramp Speed time. Allowed range is [10-10000] ms")
|
raise ValueError("Invalid Ramp Speed time. Allowed range is [10-20000] ms")
|
||||||
command_id = RwCommandIds.SET_SPEED
|
command_id = RwCommandIds.SET_SPEED
|
||||||
command = bytearray()
|
command = bytearray()
|
||||||
command += object_id + command_id
|
command += object_id + command_id
|
||||||
|
Loading…
Reference in New Issue
Block a user