A collection of test scripts for the Student Robotics v4 kit.
Project description
kit_test
A collection of test scripts for the Student Robotics v4 kit.
Tools
All scripts are subcommands of the kit_test entrypoint.
kit_test --help
kit_test <subcommand> [options]
For all the tests, adding the argument --log <log-location> will output all the test results to a CSV file.
power_v4
Here we are testing all outputs can be enabled and current sense is functioning. Additionally, we test the buzzer, LEDs and start button are functioning and finally we test both the software and hardware undervoltage protection.
To run this with an SRv4 Power Board power resistors matching the OUTPUT_RESISTANCE list in power_test.py need to be connected to each of the outputs and a power supply capable of providing 12 volts at 25 amps must be used. For the undervoltage tests, a Tenma 72-2545 power supply controller over USB is also required. Alongside this a changeover circuit is required to automatically switch the supply to the Tenma PSU when the output is enabled.
To run the test without the undervoltage tests, run:
kit_test power_v4
To run the test with the undervoltage tests, run:
kit_test power_v4 --test-uvlo
motor_v4
Here we are testing the both motor outputs function and that the current sensing is functional.
To run this with an SRv4 Motor Board connect power resistors to the motor outputs. The resistors must match the MOTOR_RESISTANCE value in motor_test.py in order for the test to function.
To run the test, run:
kit_test motor_v4
servo_v4
Here we are testing that all servo outputs are functional. Note however, that unless a separate 5 volt power supply is connected to auxiliary input, only the first 8 servos will move.
To run this with an SRv4 Servo Board connect servos to all outputs.
To run the test, run:
kit_test servo_v4
arduino
Here we are testing that all the pins on the arduino are functional.
To run this test you need to attach a testing hat to the Arduino that connects all pins (except pin 13) together through resistors and biases the common point to 2.5V.
To run the test, run:
kit_test arduino
If you wish to program up a different firmware you can provide the argument --stock-fw-hex with a path pointing to the compiled hex file of the firmware you want to flash.
When testing Arduinos that the mapping of asset code to serial number is not known add --collect-asset to also capture the asset code.
kit_test arduino --collect-asset
camera
Here we are testing that the camera is accessible and can capture undistorted images.
To run this, connect the webcam to test and point it at a test marker. The preview will freeze and highlight the marker when it is detected in the frame.
To run the test using an 80mm marker of id 101, run:
kit_test camera --marker-id 101 --marker-size 80
When testing cameras that the mapping of asset code to serial number is not known add --collect-asset to also capture the asset code.
kit_test camera --marker-id 101 --marker-size 80 --collect-asset
Inventory Helpers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sr_kit_test-1.0.0.tar.gz.
File metadata
- Download URL: sr_kit_test-1.0.0.tar.gz
- Upload date:
- Size: 48.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
400056c5bcd42336ab0c5ccfddb530c3c11def8d53416c41b61be04843bab671
|
|
| MD5 |
565244de1f79f29590255f41dd7af3ea
|
|
| BLAKE2b-256 |
162cd6586de31899a3733456d0c693d13454baa574f27aa9bc94921bcabd7a2f
|
Provenance
The following attestation bundles were made for sr_kit_test-1.0.0.tar.gz:
Publisher:
test_build.yml on srobo/kit-test-scripts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sr_kit_test-1.0.0.tar.gz -
Subject digest:
400056c5bcd42336ab0c5ccfddb530c3c11def8d53416c41b61be04843bab671 - Sigstore transparency entry: 218271399
- Sigstore integration time:
-
Permalink:
srobo/kit-test-scripts@41b1411be38dddbcbce43ae55e1c116653c7fb6d -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/srobo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_build.yml@41b1411be38dddbcbce43ae55e1c116653c7fb6d -
Trigger Event:
push
-
Statement type:
File details
Details for the file sr_kit_test-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sr_kit_test-1.0.0-py3-none-any.whl
- Upload date:
- Size: 56.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b4f270fba8fc39a96d8f18c4a04263bed98f7d8dba8147909938eb2bf44fda5
|
|
| MD5 |
f1e5618b34c13ad34803e5e37d4738da
|
|
| BLAKE2b-256 |
2d42afaddb900d5511c759b79e49f32a090675667fc146a9808f32301f359c97
|
Provenance
The following attestation bundles were made for sr_kit_test-1.0.0-py3-none-any.whl:
Publisher:
test_build.yml on srobo/kit-test-scripts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sr_kit_test-1.0.0-py3-none-any.whl -
Subject digest:
0b4f270fba8fc39a96d8f18c4a04263bed98f7d8dba8147909938eb2bf44fda5 - Sigstore transparency entry: 218271415
- Sigstore integration time:
-
Permalink:
srobo/kit-test-scripts@41b1411be38dddbcbce43ae55e1c116653c7fb6d -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/srobo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_build.yml@41b1411be38dddbcbce43ae55e1c116653c7fb6d -
Trigger Event:
push
-
Statement type: