moteus 0.3.88__py3-none-any.whl → 0.3.89__py3-none-any.whl

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.
moteus/moteus.py CHANGED
@@ -263,7 +263,11 @@ class Register(enum.IntEnum):
263
263
  AUX2_PWM4 = 0x07e,
264
264
  AUX2_PWM5 = 0x07f,
265
265
 
266
+ MODEL_NUMBER = 0x0100
267
+ FIRMWARE_VERSION = 0x101
266
268
  REGISTER_MAP_VERSION = 0x102
269
+ MULTIPLEX_ID = 0x110
270
+
267
271
  SERIAL_NUMBER = 0x120
268
272
  SERIAL_NUMBER1 = 0x120
269
273
  SERIAL_NUMBER2 = 0x121
moteus/moteus_tool.py CHANGED
@@ -35,6 +35,12 @@ from . import moteus
35
35
  from . import aiostream
36
36
  from . import regression
37
37
  from . import calibrate_encoder as ce
38
+ try:
39
+ from . import version
40
+ except ImportError:
41
+ class Version:
42
+ VERSION = 'dev'
43
+ version = Version()
38
44
 
39
45
  MAX_FLASH_BLOCK_SIZE = 32
40
46
 
@@ -1256,6 +1262,7 @@ class Stream:
1256
1262
  'motor_position_output_sign' : motor_output_sign,
1257
1263
  'abi_version' : self.firmware.version,
1258
1264
  'voltage_mode_control' : voltage_mode_control,
1265
+ 'py_version' : version.VERSION,
1259
1266
  }
1260
1267
 
1261
1268
  log_filename = f"moteus-cal-{device_info['serial_number']}-{now.strftime('%Y%m%dT%H%M%S.%f')}.log"
@@ -2238,6 +2245,7 @@ async def async_main():
2238
2245
 
2239
2246
  group = parser.add_mutually_exclusive_group()
2240
2247
 
2248
+ group.add_argument('--version', action='store_true')
2241
2249
  group.add_argument('-s', '--stop', action='store_true',
2242
2250
  help='command the servos to stop')
2243
2251
  group.add_argument('-i', '--info', action='store_true',
@@ -2353,6 +2361,10 @@ async def async_main():
2353
2361
 
2354
2362
  args = parser.parse_args()
2355
2363
 
2364
+ if args.version:
2365
+ print(f"moteus_tool version '{version.VERSION}'")
2366
+ sys.exit(0)
2367
+
2356
2368
  with Runner(args) as runner:
2357
2369
  await runner.start()
2358
2370
 
moteus/version.py CHANGED
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- VERSION="0.3.88"
15
+ VERSION="0.3.89"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: moteus
3
- Version: 0.3.88
3
+ Version: 0.3.89
4
4
  Summary: moteus brushless controller library and tools
5
5
  Home-page: https://github.com/mjbots/moteus
6
6
  Author: mjbots Robotic Systems
@@ -5,8 +5,8 @@ moteus/calibrate_encoder.py,sha256=Ami5e-LFw4RLoLseKcZx9QfS1PjQZJUwygvNZfPqd04,1
5
5
  moteus/command.py,sha256=UkOsbtkso6Oyex8CfbpAKpBNriik519ymxL86EZGkRs,1169
6
6
  moteus/export.py,sha256=XitBUuf4MDRIneXQSUptizIhZi2BdHyFO2Vo_2d2CFI,1742
7
7
  moteus/fdcanusb.py,sha256=SOAvUlleI6bKwQiApo7nYAaqBM4JoNPn4PHdPqsgsQQ,7707
8
- moteus/moteus.py,sha256=QH1y5W-KQ0hKoGDPv7lLkWTIS7YBS5pNO3gbYKoF5vw,53241
9
- moteus/moteus_tool.py,sha256=FmV-opl8PyhOHY9z_B86dyLuwbMwtkMRsH2CCNOf1Fo,98072
8
+ moteus/moteus.py,sha256=r-aFtIFaj-0s438bKBc0feOo-G8v4G6jlWk4_siQshE,53322
9
+ moteus/moteus_tool.py,sha256=2uiQyOvdn-Yd2mt0pTsZ2fzJIVb2kJeeyfT2taIiIX0,98391
10
10
  moteus/multiplex.py,sha256=2tdNX5JSh21TOjN6N9LKribLQtVYyyYbXjzwXB64sfA,12119
11
11
  moteus/posix_aioserial.py,sha256=2oDrw8TBEwuEQjY41g9rHeuFeffcPHqMwNS3nf5NVq8,3137
12
12
  moteus/pythoncan.py,sha256=j7Gv9tugQqTZbanm1lQGIoTvfmeS2kAxigB0n1a50lo,5039
@@ -14,10 +14,10 @@ moteus/reader.py,sha256=9i1-h4aGd4syfqtWJcpg70Bl-bmunkGU4FmXmOLyRt8,12121
14
14
  moteus/regression.py,sha256=M5gjDBYJQ64iBXIrvBhMkD8TYhtlnQ85x8U4py0niGA,1196
15
15
  moteus/router.py,sha256=501W5GZ12rFoc1lmcH3S7IYsoc-Q_-FJ4B3i37RzE3Q,2061
16
16
  moteus/transport.py,sha256=WhkW2G9i25lkOlO55eI5_oXmU0PhDmxTeJ75Sg_7nTI,1021
17
- moteus/version.py,sha256=bYmrQeWLHbeSIrqSgHNqnNU3m7WMEJx3w6Szx9slMuo,627
17
+ moteus/version.py,sha256=awY4LvZ9OK5lPoCwGam-n3a3hS_9hqodOOLIH3OHQCw,627
18
18
  moteus/win32_aioserial.py,sha256=culdl-vYxBKD5n2s5LkIMGyUaHyCcEc8BL5-DWEaxX8,2025
19
- moteus-0.3.88.dist-info/METADATA,sha256=9dBQGXpZ4BTL8pA26Cvh2aD5WlHdgRj-3klygfDOvMA,3417
20
- moteus-0.3.88.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
21
- moteus-0.3.88.dist-info/entry_points.txt,sha256=accRcwir_K8wCf7i3qHb5R6CPh5SiSgd5a1A92ibb9E,56
22
- moteus-0.3.88.dist-info/top_level.txt,sha256=aZzmI_yecTaDrdSp29pTJuowaSQ9dlIZheQpshGg4YQ,7
23
- moteus-0.3.88.dist-info/RECORD,,
19
+ moteus-0.3.89.dist-info/METADATA,sha256=CYM1GbGI8SfVCd58_tRUgHAXwiL-CCOJWSlUjoxqiYY,3417
20
+ moteus-0.3.89.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
21
+ moteus-0.3.89.dist-info/entry_points.txt,sha256=accRcwir_K8wCf7i3qHb5R6CPh5SiSgd5a1A92ibb9E,56
22
+ moteus-0.3.89.dist-info/top_level.txt,sha256=aZzmI_yecTaDrdSp29pTJuowaSQ9dlIZheQpshGg4YQ,7
23
+ moteus-0.3.89.dist-info/RECORD,,