pi-protocol 2.0.0__tar.gz → 3.0.0__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: pi-protocol
3
- Version: 2.0.0
3
+ Version: 3.0.0
4
4
  Summary: Python client for pi-protocol, a minimalist framed message protocol for talking to MCUs over serial
5
5
  Author: Till Blaha
6
6
  License-Expression: MIT
@@ -128,6 +128,7 @@ Local build (sdist + wheel in `dist/`): `make dist PYTHON="uv run --group gen py
128
128
  ## History
129
129
 
130
130
  * 2024-08-27 -- Version 2.0.0 -- Initial release
131
+ * 2026-12-02 -- Version 3.0.0 -- HIL_IN/HIL_OUT extended with 8 rpms/setpoints and 8 servos (wire-incompatible with 2.x)
131
132
 
132
133
 
133
134
  ## Authors
@@ -107,6 +107,7 @@ Local build (sdist + wheel in `dist/`): `make dist PYTHON="uv run --group gen py
107
107
  ## History
108
108
 
109
109
  * 2024-08-27 -- Version 2.0.0 -- Initial release
110
+ * 2026-12-02 -- Version 3.0.0 -- HIL_IN/HIL_OUT extended with 8 rpms/setpoints and 8 servos (wire-incompatible with 2.x)
110
111
 
111
112
 
112
113
  ## Authors
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pi-protocol"
7
- version = "2.0.0" # major must equal the major of protocol_version in config.yaml (checked on release)
7
+ version = "3.0.0" # major must equal the major of protocol_version in config.yaml (checked on release)
8
8
  description = "Python client for pi-protocol, a minimalist framed message protocol for talking to MCUs over serial"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -28,7 +28,7 @@ little-endian, matching the packed C structs on ARM/x86.
28
28
  from struct import Struct
29
29
  from typing import NamedTuple
30
30
 
31
- PI_VERSION = (2, 0, 0)
31
+ PI_VERSION = (3, 0, 0)
32
32
  PI_GLOBAL_MODE = "RXTX"
33
33
 
34
34
 
@@ -111,7 +111,7 @@ class PosSetpoint(NamedTuple):
111
111
 
112
112
 
113
113
  class HilIn(NamedTuple):
114
- """HIL_IN: id 5, 26 payload bytes"""
114
+ """HIL_IN: id 5, 50 payload bytes"""
115
115
  time_us: int = 0 # uint32_t
116
116
  gyro_x: int = 0 # int16_t
117
117
  gyro_y: int = 0 # int16_t
@@ -124,29 +124,53 @@ class HilIn(NamedTuple):
124
124
  rpm_2: int = 0 # int16_t
125
125
  rpm_3: int = 0 # int16_t
126
126
  rpm_4: int = 0 # int16_t
127
+ rpm_5: int = 0 # int16_t
128
+ rpm_6: int = 0 # int16_t
129
+ rpm_7: int = 0 # int16_t
130
+ rpm_8: int = 0 # int16_t
131
+ servo_1: int = 0 # int16_t
132
+ servo_2: int = 0 # int16_t
133
+ servo_3: int = 0 # int16_t
134
+ servo_4: int = 0 # int16_t
135
+ servo_5: int = 0 # int16_t
136
+ servo_6: int = 0 # int16_t
137
+ servo_7: int = 0 # int16_t
138
+ servo_8: int = 0 # int16_t
127
139
 
128
140
  ID = 5
129
141
  NAME = "HIL_IN"
130
142
  MODE = "RXTX"
131
- PAYLOAD_LEN = 26
132
- _pack = Struct("<BIhhhhhhhhhhh").pack
133
- _unpack = Struct("<Ihhhhhhhhhhh").unpack_from
143
+ PAYLOAD_LEN = 50
144
+ _pack = Struct("<BIhhhhhhhhhhhhhhhhhhhhhhh").pack
145
+ _unpack = Struct("<Ihhhhhhhhhhhhhhhhhhhhhhh").unpack_from
134
146
 
135
147
 
136
148
  class HilOut(NamedTuple):
137
- """HIL_OUT: id 6, 12 payload bytes"""
149
+ """HIL_OUT: id 6, 36 payload bytes"""
138
150
  time_us: int = 0 # uint32_t
139
151
  set_1: int = 0 # int16_t
140
152
  set_2: int = 0 # int16_t
141
153
  set_3: int = 0 # int16_t
142
154
  set_4: int = 0 # int16_t
155
+ set_5: int = 0 # int16_t
156
+ set_6: int = 0 # int16_t
157
+ set_7: int = 0 # int16_t
158
+ set_8: int = 0 # int16_t
159
+ servo_1: int = 0 # int16_t
160
+ servo_2: int = 0 # int16_t
161
+ servo_3: int = 0 # int16_t
162
+ servo_4: int = 0 # int16_t
163
+ servo_5: int = 0 # int16_t
164
+ servo_6: int = 0 # int16_t
165
+ servo_7: int = 0 # int16_t
166
+ servo_8: int = 0 # int16_t
143
167
 
144
168
  ID = 6
145
169
  NAME = "HIL_OUT"
146
170
  MODE = "RXTX"
147
- PAYLOAD_LEN = 12
148
- _pack = Struct("<BIhhhh").pack
149
- _unpack = Struct("<Ihhhh").unpack_from
171
+ PAYLOAD_LEN = 36
172
+ _pack = Struct("<BIhhhhhhhhhhhhhhhh").pack
173
+ _unpack = Struct("<Ihhhhhhhhhhhhhhhh").unpack_from
150
174
 
151
175
 
152
176
  class VioPose(NamedTuple):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pi-protocol
3
- Version: 2.0.0
3
+ Version: 3.0.0
4
4
  Summary: Python client for pi-protocol, a minimalist framed message protocol for talking to MCUs over serial
5
5
  Author: Till Blaha
6
6
  License-Expression: MIT
@@ -128,6 +128,7 @@ Local build (sdist + wheel in `dist/`): `make dist PYTHON="uv run --group gen py
128
128
  ## History
129
129
 
130
130
  * 2024-08-27 -- Version 2.0.0 -- Initial release
131
+ * 2026-12-02 -- Version 3.0.0 -- HIL_IN/HIL_OUT extended with 8 rpms/setpoints and 8 servos (wire-incompatible with 2.x)
131
132
 
132
133
 
133
134
  ## Authors
File without changes
File without changes