robot-hat 3.3.0__tar.gz → 3.3.2__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.
- {robot_hat-3.3.0 → robot_hat-3.3.2}/.github/workflows/ci.yml +4 -4
- {robot_hat-3.3.0 → robot_hat-3.3.2}/.github/workflows/release.yml +2 -2
- {robot_hat-3.3.0 → robot_hat-3.3.2}/CHANGELOG.md +18 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/PKG-INFO +10 -4
- {robot_hat-3.3.0 → robot_hat-3.3.2}/README.md +8 -2
- {robot_hat-3.3.0 → robot_hat-3.3.2}/docs/localization_sensors.md +4 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/docs/pololu_miniimu9_v5.md +9 -4
- {robot_hat-3.3.0 → robot_hat-3.3.2}/pyproject.toml +1 -1
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/i2c/retry_decorator.py +15 -2
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/version.py +3 -3
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat.egg-info/PKG-INFO +10 -4
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat.egg-info/requires.txt +1 -1
- robot_hat-3.3.2/robot_hat.egg-info/scm_version.json +8 -0
- robot_hat-3.3.0/robot_hat.egg-info/scm_version.json +0 -8
- {robot_hat-3.3.0 → robot_hat-3.3.2}/.github/dependabot.yml +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/.gitignore +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/.pre-commit-config.yaml +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/AGENTS.md +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/LICENSE +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/MANIFEST.in +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/Makefile +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/docs/as5048a.md +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/docs/hardware_validation.md +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/docs/lidar_2d.md +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/docs/migration_guide_v2.md +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/docs/migration_guide_v3.md +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/docs/sense_hat_sensors.md +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/hardware-validation/evidence/README.md +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/pyrightconfig.json +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/common/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/common/event_emitter.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/common/singleton_meta.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/angular_position.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/battery.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/bus.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/battery.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/hts221.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/ina219.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/ina226.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/ina260.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/lidar.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/lis3mdl.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/lps25h.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/lsm6ds33.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/lsm9ds1.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/lsm9ds1_magnetometer.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/motor.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/pwm.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/config/sh3001.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/encoder.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/environment.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/imu.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/lidar.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/magnetometer.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/motor.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/quadrature.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/data_types/uart.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/adc/INA219.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/adc/INA226.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/adc/INA260.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/adc/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/adc/sunfounder_adc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/angle/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/angle/as5048a.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/angle/as5600l.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/gpio/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/gpio/gpiozero_digital_edge_input.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/pwm/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/pwm/pca9685.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/drivers/pwm/sunfounder_pwm.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/exceptions.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/factories/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/factories/battery_factory.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/factories/motor_factory.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/factories/pwm_factory.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/filedb.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/i2c/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/i2c/i2c_bus.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/i2c/i2c_manager.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/i2c/smbus_manager.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/i2c/smbus_protocol.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/angular_position_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/battery_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/digital_edge_input_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/encoder_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/environmental_sensor_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/imu_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/lidar_2d_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/magnetometer_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/motor_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/pwm_driver_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/quadrature_counter_backend_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/servo_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/smbus_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/spi_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/interfaces/uart_abc.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/angular_position.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/encoder.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/environmental_sensor.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/imu.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/lidar.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/magnetometer.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/quadrature_counter.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/smbus2.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/spi.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/uart.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/mock/ultrasonic.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/motor/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/motor/gpio_dc_motor.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/motor/i2c_dc_motor.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/motor/mixins/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/motor/mixins/motor_calibration.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/motor/phase_motor.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/music.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/pin.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/py.typed +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/angular_position/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/angular_position/as5048a_angular_position.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/angular_position/as5600l_angular_position.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/encoder/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/encoder/as5048a_encoder.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/encoder/as5600l_encoder.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/encoder/gpio_quadrature_counter.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/encoder/quadrature_decoder.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/encoder/quadrature_encoder.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/environmental/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/environmental/hts221.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/environmental/lps25h.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/imu/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/imu/lsm6ds33.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/imu/lsm9ds1.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/imu/sh3001.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/lidar/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/lidar/rplidar_c1.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/magnetometer/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/magnetometer/lis3mdl.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/magnetometer/lsm9ds1.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/ultrasonic/HC_SR04.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/ultrasonic/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/base_motor_service.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/battery/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/battery/ina219_battery.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/battery/ina226_battery.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/battery/ina260_battery.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/battery/sunfounder_battery.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/motor_service.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/servo_service.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/services/single_motor_service.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/servos/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/servos/gpio_angular_servo.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/servos/servo.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/spi/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/spi/spidev_device.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/accelerometer.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/address_descriptions.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/grayscale.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/motor.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/pin_descriptions.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/pwm.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/robot.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/sunfounder_servo.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sunfounder/utils.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/uart/__init__.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/uart/serial_uart.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/uart/usb_uart.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/utils.py +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat.egg-info/SOURCES.txt +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat.egg-info/dependency_links.txt +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat.egg-info/scm_file_list.json +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat.egg-info/top_level.txt +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/setup.cfg +0 -0
- {robot_hat-3.3.0 → robot_hat-3.3.2}/tools/hil_motor_check.py +0 -0
|
@@ -82,7 +82,7 @@ jobs:
|
|
|
82
82
|
"gpiozero==2.0" \
|
|
83
83
|
"pyserial==3.5" \
|
|
84
84
|
"smbus2==0.4.3" \
|
|
85
|
-
"tenacity==
|
|
85
|
+
"tenacity==9.2.1"
|
|
86
86
|
python -m pip install --editable . --no-deps
|
|
87
87
|
python -m pip check
|
|
88
88
|
|
|
@@ -177,7 +177,7 @@ jobs:
|
|
|
177
177
|
python -m coverage xml
|
|
178
178
|
|
|
179
179
|
- name: Upload coverage report
|
|
180
|
-
uses: actions/upload-artifact@
|
|
180
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
181
181
|
with:
|
|
182
182
|
name: coverage-report
|
|
183
183
|
path: coverage.xml
|
|
@@ -186,7 +186,7 @@ jobs:
|
|
|
186
186
|
|
|
187
187
|
- name: Upload coverage to Codecov
|
|
188
188
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
|
189
|
-
uses: codecov/codecov-action@
|
|
189
|
+
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
|
|
190
190
|
with:
|
|
191
191
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
192
192
|
files: ./coverage.xml
|
|
@@ -249,7 +249,7 @@ jobs:
|
|
|
249
249
|
PY
|
|
250
250
|
|
|
251
251
|
- name: Upload distributions
|
|
252
|
-
uses: actions/upload-artifact@
|
|
252
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
253
253
|
with:
|
|
254
254
|
name: robot-hat-distributions
|
|
255
255
|
path: dist/*
|
|
@@ -133,7 +133,7 @@ jobs:
|
|
|
133
133
|
.release-test/bin/python -c "import robot_hat; print(robot_hat.version)"
|
|
134
134
|
|
|
135
135
|
- name: Upload distributions
|
|
136
|
-
uses: actions/upload-artifact@
|
|
136
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
137
137
|
with:
|
|
138
138
|
name: python-package-distributions
|
|
139
139
|
path: dist/
|
|
@@ -154,7 +154,7 @@ jobs:
|
|
|
154
154
|
|
|
155
155
|
steps:
|
|
156
156
|
- name: Download distributions
|
|
157
|
-
uses: actions/download-artifact@
|
|
157
|
+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
158
158
|
with:
|
|
159
159
|
name: python-package-distributions
|
|
160
160
|
path: dist/
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v3.3.2 (2026-10-11)
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Preserve I²C retry-decorated method signatures for static type checking with
|
|
8
|
+
Tenacity 9.2.1.
|
|
9
|
+
- Pin Tenacity to 9.2.1 for consistent retry dependency resolution.
|
|
10
|
+
|
|
11
|
+
## v3.3.1 (2026-09-09)
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
- Clarified the MiniIMU-9 v5 component names: LSM6DS33 (gyro and accelerometer)
|
|
16
|
+
and LIS3MDL (magnetometer), including both default and SA0-low address pairs.
|
|
17
|
+
- Documented that both drivers have been available since 3.3.0 and must be
|
|
18
|
+
configured independently to acquire all nine axes. No hardware behavior or
|
|
19
|
+
public Python API changed.
|
|
20
|
+
|
|
3
21
|
## v3.3.0 (2026-09-07)
|
|
4
22
|
|
|
5
23
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robot_hat
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.2
|
|
4
4
|
Summary: Extensible, typed robotics hardware library for motors, servos, sensors, 2D lidar, I2C, and UART.
|
|
5
5
|
Author-email: Karim Aziiev <karim.aziiev@gmail.com>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -29,7 +29,7 @@ Requires-Dist: gpiozero>=2.0
|
|
|
29
29
|
Requires-Dist: pyserial>=3.5
|
|
30
30
|
Requires-Dist: RPi.GPIO; sys_platform == "linux" and (platform_machine == "armv6l" or platform_machine == "armv7l" or platform_machine == "aarch64")
|
|
31
31
|
Requires-Dist: smbus2>=0.4.3
|
|
32
|
-
Requires-Dist: tenacity
|
|
32
|
+
Requires-Dist: tenacity==9.2.1
|
|
33
33
|
Provides-Extra: music
|
|
34
34
|
Requires-Dist: pygame-ce; extra == "music"
|
|
35
35
|
Provides-Extra: spi
|
|
@@ -154,9 +154,9 @@ the separate `MagnetometerABC` contract and return teslas.
|
|
|
154
154
|
| Driver | Contract | Example hardware | Default I²C address | Default configuration |
|
|
155
155
|
|-----------------------|-------------------|------------------------------------|---------------------|-----------------------------------------|
|
|
156
156
|
| `SH3001` | `IMUABC` | SunFounder Robot HAT | `0x36` | ±2 g, ±2000°/s |
|
|
157
|
-
| `LSM6DS33`
|
|
157
|
+
| `LSM6DS33` (gyro and accelerometer) | `IMUABC` | Pololu MiniIMU-9 v5 / AltIMU-10 v5 | `0x6b` | ±2 g, ±245°/s, 104 Hz |
|
|
158
158
|
| `LSM9DS1` | `IMUABC` | Raspberry Pi Sense HAT v1/v2 | `0x6a` | ±2 g, ±245°/s, 119 Hz |
|
|
159
|
-
| `LIS3MDL`
|
|
159
|
+
| `LIS3MDL` (magnetometer) | `MagnetometerABC` | Pololu MiniIMU-9 v5 / AltIMU-10 v5 | `0x1e` | ±4 gauss, 10 Hz, ultra-high performance |
|
|
160
160
|
| `LSM9DS1Magnetometer` | `MagnetometerABC` | Raspberry Pi Sense HAT v1/v2 | `0x1c` | ±4 gauss, 20 Hz, ultra-high performance |
|
|
161
161
|
|
|
162
162
|
For example, the SH3001 can be sampled as follows:
|
|
@@ -213,6 +213,12 @@ finally:
|
|
|
213
213
|
The addresses above are the MiniIMU defaults. Driving the board's `SA0` pin low
|
|
214
214
|
changes the LSM6DS33 address to `0x6a` and the LIS3MDL address to `0x1c`.
|
|
215
215
|
|
|
216
|
+
Both drivers are included from `robot-hat 3.3.0`. To acquire all nine axes,
|
|
217
|
+
configure and initialize both: `LSM6DS33` supplies the six inertial axes and
|
|
218
|
+
`LIS3MDL` supplies the three magnetic axes. Selecting `LSM6DS33` alone does not
|
|
219
|
+
initialize or read the magnetometer. Each component returns its own timestamped
|
|
220
|
+
sample through its corresponding ABC.
|
|
221
|
+
|
|
216
222
|
The Raspberry Pi Sense HAT v1 and v2 use an LSM9DS1. Its six-axis
|
|
217
223
|
accelerometer/gyroscope function is available without `sense-hat` or RTIMULib:
|
|
218
224
|
|
|
@@ -111,9 +111,9 @@ the separate `MagnetometerABC` contract and return teslas.
|
|
|
111
111
|
| Driver | Contract | Example hardware | Default I²C address | Default configuration |
|
|
112
112
|
|-----------------------|-------------------|------------------------------------|---------------------|-----------------------------------------|
|
|
113
113
|
| `SH3001` | `IMUABC` | SunFounder Robot HAT | `0x36` | ±2 g, ±2000°/s |
|
|
114
|
-
| `LSM6DS33`
|
|
114
|
+
| `LSM6DS33` (gyro and accelerometer) | `IMUABC` | Pololu MiniIMU-9 v5 / AltIMU-10 v5 | `0x6b` | ±2 g, ±245°/s, 104 Hz |
|
|
115
115
|
| `LSM9DS1` | `IMUABC` | Raspberry Pi Sense HAT v1/v2 | `0x6a` | ±2 g, ±245°/s, 119 Hz |
|
|
116
|
-
| `LIS3MDL`
|
|
116
|
+
| `LIS3MDL` (magnetometer) | `MagnetometerABC` | Pololu MiniIMU-9 v5 / AltIMU-10 v5 | `0x1e` | ±4 gauss, 10 Hz, ultra-high performance |
|
|
117
117
|
| `LSM9DS1Magnetometer` | `MagnetometerABC` | Raspberry Pi Sense HAT v1/v2 | `0x1c` | ±4 gauss, 20 Hz, ultra-high performance |
|
|
118
118
|
|
|
119
119
|
For example, the SH3001 can be sampled as follows:
|
|
@@ -170,6 +170,12 @@ finally:
|
|
|
170
170
|
The addresses above are the MiniIMU defaults. Driving the board's `SA0` pin low
|
|
171
171
|
changes the LSM6DS33 address to `0x6a` and the LIS3MDL address to `0x1c`.
|
|
172
172
|
|
|
173
|
+
Both drivers are included from `robot-hat 3.3.0`. To acquire all nine axes,
|
|
174
|
+
configure and initialize both: `LSM6DS33` supplies the six inertial axes and
|
|
175
|
+
`LIS3MDL` supplies the three magnetic axes. Selecting `LSM6DS33` alone does not
|
|
176
|
+
initialize or read the magnetometer. Each component returns its own timestamped
|
|
177
|
+
sample through its corresponding ABC.
|
|
178
|
+
|
|
173
179
|
The Raspberry Pi Sense HAT v1 and v2 use an LSM9DS1. Its six-axis
|
|
174
180
|
accelerometer/gyroscope function is available without `sense-hat` or RTIMULib:
|
|
175
181
|
|
|
@@ -39,6 +39,10 @@ independent `LIS3MDL` driver provides magnetic samples in teslas at address
|
|
|
39
39
|
`0x1e`. Driving the Pololu board's shared `SA0` pin low changes those addresses
|
|
40
40
|
to `0x6a` and `0x1c`, respectively. Both drivers expose native axes, typed
|
|
41
41
|
configuration, diagnostic raw counts, and caller-owned shared-bus injection.
|
|
42
|
+
In a driver selector, these components should be identified as
|
|
43
|
+
**LSM6DS33 (gyro and accelerometer)** and **LIS3MDL (magnetometer)**.
|
|
44
|
+
Both are included from `robot-hat 3.3.0`; acquiring all nine board axes requires
|
|
45
|
+
initializing and reading both drivers, with separate timestamped samples.
|
|
42
46
|
See [Pololu MiniIMU-9 v5 support](pololu_miniimu9_v5.md) for wiring, complete
|
|
43
47
|
configuration ranges, and calibration responsibilities.
|
|
44
48
|
|
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
The Pololu MiniIMU-9 v5 combines two independently addressed ST sensors:
|
|
4
4
|
|
|
5
|
-
|
|
|
6
|
-
|
|
|
7
|
-
| Three-axis
|
|
8
|
-
| Three-axis magnetic field | `
|
|
5
|
+
| Sensor / driver | Measurement | Default address | Address with `SA0` low |
|
|
6
|
+
| ----------------------------------- | -------------------------------------------- | ------------------- | ---------------------- |
|
|
7
|
+
| `LSM6DS33` (gyro and accelerometer) | Three-axis angular velocity and acceleration | `0x6b` (`1101011b`) | `0x6a` (`1101010b`) |
|
|
8
|
+
| `LIS3MDL` (magnetometer) | Three-axis magnetic field | `0x1e` (`0011110b`) | `0x1c` (`0011100b`) |
|
|
9
9
|
|
|
10
10
|
The drivers are named after their sensor ICs rather than the Pololu carrier.
|
|
11
11
|
They can therefore be used independently with standalone LSM6DS33 or LIS3MDL
|
|
12
12
|
breakouts and together on the MiniIMU-9 v5 or AltIMU-10 v5. `LSM6DS33`
|
|
13
13
|
implements `IMUABC`; `LIS3MDL` implements `MagnetometerABC`.
|
|
14
14
|
|
|
15
|
+
Both drivers have been available since `robot-hat 3.3.0`. Applications must
|
|
16
|
+
configure both components to read all nine axes. Constructing an `LSM6DS33`
|
|
17
|
+
does not initialize or sample the separate `LIS3MDL`. Each component returns
|
|
18
|
+
its own timestamped sample; the board does not supply a fused orientation.
|
|
19
|
+
|
|
15
20
|
## Wiring and addresses
|
|
16
21
|
|
|
17
22
|
Connect `VIN`, `GND`, `SCL`, and `SDA`. The MiniIMU carrier accepts 2.5–5.5 V at
|
|
@@ -24,7 +24,7 @@ dependencies = [
|
|
|
24
24
|
"pyserial>=3.5",
|
|
25
25
|
"RPi.GPIO; sys_platform == 'linux' and (platform_machine == 'armv6l' or platform_machine == 'armv7l' or platform_machine == 'aarch64')",
|
|
26
26
|
"smbus2>=0.4.3",
|
|
27
|
-
"tenacity
|
|
27
|
+
"tenacity==9.2.1",
|
|
28
28
|
]
|
|
29
29
|
|
|
30
30
|
keywords = ["i2c", "lidar", "raspberrypi", "robotics", "uart"]
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
from typing import Callable, ParamSpec, TypeVar
|
|
2
|
+
|
|
1
3
|
from tenacity import (
|
|
2
4
|
retry,
|
|
3
5
|
retry_if_exception_type,
|
|
4
6
|
stop_after_attempt,
|
|
5
|
-
wait_exponential_jitter,
|
|
6
7
|
)
|
|
8
|
+
from tenacity.wait import wait_exponential_jitter
|
|
7
9
|
|
|
8
10
|
# Number of retry attempts for I2C communication
|
|
9
11
|
RETRY_ATTEMPTS = 5
|
|
@@ -17,9 +19,20 @@ MAX_WAIT = 0.2 # 200ms
|
|
|
17
19
|
# Random jitter (in seconds) to add randomness to retry timing
|
|
18
20
|
JITTER = 0.05 # 50ms
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
_P = ParamSpec("_P")
|
|
23
|
+
_R = TypeVar("_R")
|
|
24
|
+
|
|
25
|
+
_retry_policy = retry(
|
|
21
26
|
stop=stop_after_attempt(RETRY_ATTEMPTS),
|
|
22
27
|
wait=wait_exponential_jitter(initial=INITIAL_WAIT, max=MAX_WAIT, jitter=JITTER),
|
|
23
28
|
retry=retry_if_exception_type((OSError, TimeoutError)),
|
|
24
29
|
reraise=True,
|
|
25
30
|
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _retry_io(func: Callable[_P, _R]) -> Callable[_P, _R]:
|
|
34
|
+
"""Retry transient I/O errors while preserving the callable's signature."""
|
|
35
|
+
return _retry_policy(func)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
RETRY_DECORATOR = _retry_io
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '3.3.
|
|
22
|
-
__version_tuple__ = version_tuple = (3, 3,
|
|
21
|
+
__version__ = version = '3.3.2'
|
|
22
|
+
__version_tuple__ = version_tuple = (3, 3, 2)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g21bbab089'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robot_hat
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.2
|
|
4
4
|
Summary: Extensible, typed robotics hardware library for motors, servos, sensors, 2D lidar, I2C, and UART.
|
|
5
5
|
Author-email: Karim Aziiev <karim.aziiev@gmail.com>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -29,7 +29,7 @@ Requires-Dist: gpiozero>=2.0
|
|
|
29
29
|
Requires-Dist: pyserial>=3.5
|
|
30
30
|
Requires-Dist: RPi.GPIO; sys_platform == "linux" and (platform_machine == "armv6l" or platform_machine == "armv7l" or platform_machine == "aarch64")
|
|
31
31
|
Requires-Dist: smbus2>=0.4.3
|
|
32
|
-
Requires-Dist: tenacity
|
|
32
|
+
Requires-Dist: tenacity==9.2.1
|
|
33
33
|
Provides-Extra: music
|
|
34
34
|
Requires-Dist: pygame-ce; extra == "music"
|
|
35
35
|
Provides-Extra: spi
|
|
@@ -154,9 +154,9 @@ the separate `MagnetometerABC` contract and return teslas.
|
|
|
154
154
|
| Driver | Contract | Example hardware | Default I²C address | Default configuration |
|
|
155
155
|
|-----------------------|-------------------|------------------------------------|---------------------|-----------------------------------------|
|
|
156
156
|
| `SH3001` | `IMUABC` | SunFounder Robot HAT | `0x36` | ±2 g, ±2000°/s |
|
|
157
|
-
| `LSM6DS33`
|
|
157
|
+
| `LSM6DS33` (gyro and accelerometer) | `IMUABC` | Pololu MiniIMU-9 v5 / AltIMU-10 v5 | `0x6b` | ±2 g, ±245°/s, 104 Hz |
|
|
158
158
|
| `LSM9DS1` | `IMUABC` | Raspberry Pi Sense HAT v1/v2 | `0x6a` | ±2 g, ±245°/s, 119 Hz |
|
|
159
|
-
| `LIS3MDL`
|
|
159
|
+
| `LIS3MDL` (magnetometer) | `MagnetometerABC` | Pololu MiniIMU-9 v5 / AltIMU-10 v5 | `0x1e` | ±4 gauss, 10 Hz, ultra-high performance |
|
|
160
160
|
| `LSM9DS1Magnetometer` | `MagnetometerABC` | Raspberry Pi Sense HAT v1/v2 | `0x1c` | ±4 gauss, 20 Hz, ultra-high performance |
|
|
161
161
|
|
|
162
162
|
For example, the SH3001 can be sampled as follows:
|
|
@@ -213,6 +213,12 @@ finally:
|
|
|
213
213
|
The addresses above are the MiniIMU defaults. Driving the board's `SA0` pin low
|
|
214
214
|
changes the LSM6DS33 address to `0x6a` and the LIS3MDL address to `0x1c`.
|
|
215
215
|
|
|
216
|
+
Both drivers are included from `robot-hat 3.3.0`. To acquire all nine axes,
|
|
217
|
+
configure and initialize both: `LSM6DS33` supplies the six inertial axes and
|
|
218
|
+
`LIS3MDL` supplies the three magnetic axes. Selecting `LSM6DS33` alone does not
|
|
219
|
+
initialize or read the magnetometer. Each component returns its own timestamped
|
|
220
|
+
sample through its corresponding ABC.
|
|
221
|
+
|
|
216
222
|
The Raspberry Pi Sense HAT v1 and v2 use an LSM9DS1. Its six-axis
|
|
217
223
|
accelerometer/gyroscope function is available without `sense-hat` or RTIMULib:
|
|
218
224
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/angular_position/as5048a_angular_position.py
RENAMED
|
File without changes
|
{robot_hat-3.3.0 → robot_hat-3.3.2}/robot_hat/sensors/angular_position/as5600l_angular_position.py
RENAMED
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|