pypck 0.8.7__tar.gz → 0.8.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypck
3
- Version: 0.8.7
3
+ Version: 0.8.8
4
4
  Summary: LCN-PCK library
5
5
  Home-page: https://github.com/alengwenus/pypck
6
6
  Author-email: Andre Lengwenus <alengwenus@gmail.com>
pypck-0.8.8/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.8.8
@@ -1173,7 +1173,7 @@ class ModStatusMotorPositionModule(ModInput):
1173
1173
  ModStatusMotorPositionModule(
1174
1174
  addr,
1175
1175
  int(motor) - 1,
1176
- float(position),
1176
+ 100 - float(position),
1177
1177
  )
1178
1178
  ]
1179
1179
 
@@ -645,7 +645,7 @@ class PckGenerator:
645
645
  return f"R8M{new_motor_id}{action}"
646
646
  elif mode == lcn_defs.MotorPositioningMode.MODULE:
647
647
  new_motor_id = 1 << motor_id
648
- return f"JH{position:03d}{new_motor_id:03d}"
648
+ return f"JH{100 - position:03d}{new_motor_id:03d}"
649
649
 
650
650
  return ""
651
651
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypck
3
- Version: 0.8.7
3
+ Version: 0.8.8
4
4
  Summary: LCN-PCK library
5
5
  Home-page: https://github.com/alengwenus/pypck
6
6
  Author-email: Andre Lengwenus <alengwenus@gmail.com>
@@ -254,10 +254,10 @@ COMMANDS = {
254
254
  50,
255
255
  MotorPositioningMode.MODULE,
256
256
  ),
257
- "JH100004": (
257
+ "JH030004": (
258
258
  PckGenerator.control_motor_relays_position,
259
259
  2,
260
- 100,
260
+ 70,
261
261
  MotorPositioningMode.MODULE,
262
262
  ),
263
263
  "X2001228000": (
@@ -261,11 +261,11 @@ MESSAGES = {
261
261
  ),
262
262
  ],
263
263
  # Status motor position via module
264
- ":M000010P1050": [
264
+ ":M000010P1070": [
265
265
  (
266
266
  ModStatusMotorPositionModule,
267
267
  0,
268
- 50,
268
+ 30,
269
269
  )
270
270
  ],
271
271
  # SKH
pypck-0.8.7/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.8.7
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes