Commit 4fddaf6d authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Allow negative default values

parent a4c3f268
......@@ -21,7 +21,7 @@ class H42_20_S300_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=465),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=10300),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=151875),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-151875),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -24,7 +24,7 @@ class H42_20_S300_R_A(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=10765),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2920),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=303454),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-303454),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=52),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class H54_100_S500_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=310),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=17000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=250961),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-250961),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -24,7 +24,7 @@ class H54_100_S500_R_A(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=10639),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2920),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=501433),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-501433),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=52),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class H54_200_S500_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=620),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=17000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=250961),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-250961),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -24,7 +24,7 @@ class H54_200_S500_R_A(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=9982),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2900),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=501433),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-501433),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=52),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class L42_10_S300_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=987),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=None),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=2048),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-2047),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=30),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class L54_30_S400_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=100),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=9000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=144197),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-144197),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class L54_30_S500_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=100),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=9000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=180692),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-180692),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class L54_50_S290_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=120),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=8000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=103846),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-103846),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class L54_50_S500_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=120),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=8000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=180692),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-180692),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class M42_10_S260_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=300),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=8000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=131593),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-131593),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -24,7 +24,7 @@ class M42_10_S260_R_A(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=10867),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2600),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=262931),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-262931),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=52),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class M54_40_S250_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=120),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=8000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=125708),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-125708),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -24,7 +24,7 @@ class M54_40_S250_R_A(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=11037),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2840),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=251173),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-251173),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=52),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
......@@ -21,7 +21,7 @@ class M54_60_S250_R(Servo):
'torque_limit': RWRow(name='torque_limit', address=30, size=2, default=180),
'velocity_limit': RWRow(name='velocity_limit', address=32, size=4, default=8000),
'max_position_limit': RWRow(name='max_position_limit', address=36, size=4, default=125708),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=40, size=4, default=-125708),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(44, 48)], size=1),
'shutdown': RWRow(name='shutdown', address=48, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(49, 561, 2)], size=2)
......
......@@ -24,7 +24,7 @@ class M54_60_S250_R_A(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=11145),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2830),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=251173),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-251173),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=52),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
......@@ -25,7 +25,7 @@ class PH42_020_S300_R(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=10765),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2920),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=303454),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-303454),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
......@@ -25,7 +25,7 @@ class PH54_100_S500_R(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=10639),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2920),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=501433),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-501433),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=58),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
......@@ -25,7 +25,7 @@ class PH54_200_S500_R(Servo):
'acceleration_limit': RWRow(name='acceleration_limit', address=40, size=4, default=9982),
'velocity_limit': RWRow(name='velocity_limit', address=44, size=4, default=2900),
'max_position_limit': RWRow(name='max_position_limit', address=48, size=4, default=501433),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=None),
'min_position_limit': RWRow(name='min_position_limit', address=52, size=4, default=-501433),
'external_port_mode': IndirectRow(name='external_port_mode', addresses=[range(56, 60)], size=1),
'shutdown': RWRow(name='shutdown', address=63, size=1, default=52),
'indirect_address': IndirectRow(name='indirect_address', addresses=[range(168, 424, 2)], size=2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment