Files
allwpilib/wpilibc/src/test/python/test_mechanism2d.py
PJ Reiniger 44b9cc1398 [robotpy] Mirror most other subprojects (#8208)
GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a

This mirrors the robotpy files for the following projects:
- apriltag
- datalog
- hal
- ntcore
- romiVendordep
- wpilibc
- wpimath
- xrpVendordep

This excludes cscore and the halsim wrappers for at this time.

NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
2025-10-23 22:28:04 -07:00

12 lines
274 B
Python

from wpilib import Mechanism2d
def test_create_mechanism():
m = Mechanism2d(100, 100)
r1 = m.getRoot("r1", 10, 10)
l1 = r1.appendLigament("l1", 4, 3)
l2 = l1.appendLigament("l2", 4, 3)
assert l2 is not None
# TODO... check that they do something?