mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[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.
This commit is contained in:
210
wpilibc/src/main/python/wpilib/__init__.py
Normal file
210
wpilibc/src/main/python/wpilib/__init__.py
Normal file
@@ -0,0 +1,210 @@
|
||||
from . import _init__wpilib
|
||||
|
||||
# TODO: robotpy-build subpackage bug
|
||||
from wpimath._controls._controls import trajectory as _
|
||||
|
||||
# autogenerated by 'semiwrap create-imports wpilib wpilib._wpilib'
|
||||
from ._wpilib import (
|
||||
ADXL345_I2C,
|
||||
AddressableLED,
|
||||
Alert,
|
||||
AnalogAccelerometer,
|
||||
AnalogEncoder,
|
||||
AnalogGyro,
|
||||
AnalogInput,
|
||||
AnalogPotentiometer,
|
||||
CAN,
|
||||
CANStatus,
|
||||
Color,
|
||||
Color8Bit,
|
||||
Compressor,
|
||||
CompressorConfigType,
|
||||
DMC60,
|
||||
DSControlWord,
|
||||
DataLogManager,
|
||||
DigitalInput,
|
||||
DigitalOutput,
|
||||
DoubleSolenoid,
|
||||
DriverStation,
|
||||
DutyCycle,
|
||||
DutyCycleEncoder,
|
||||
Encoder,
|
||||
Field2d,
|
||||
FieldObject2d,
|
||||
I2C,
|
||||
IterativeRobotBase,
|
||||
Jaguar,
|
||||
Joystick,
|
||||
Koors40,
|
||||
LEDPattern,
|
||||
Mechanism2d,
|
||||
MechanismLigament2d,
|
||||
MechanismObject2d,
|
||||
MechanismRoot2d,
|
||||
MotorControllerGroup,
|
||||
MotorSafety,
|
||||
Notifier,
|
||||
OnboardIMU,
|
||||
PS4Controller,
|
||||
PS5Controller,
|
||||
PWM,
|
||||
PWMMotorController,
|
||||
PWMSparkFlex,
|
||||
PWMSparkMax,
|
||||
PWMTalonFX,
|
||||
PWMTalonSRX,
|
||||
PWMVenom,
|
||||
PWMVictorSPX,
|
||||
PneumaticHub,
|
||||
PneumaticsBase,
|
||||
PneumaticsControlModule,
|
||||
PneumaticsModuleType,
|
||||
PowerDistribution,
|
||||
Preferences,
|
||||
RobotBase,
|
||||
RobotController,
|
||||
RobotState,
|
||||
RuntimeType,
|
||||
SD540,
|
||||
SendableBuilderImpl,
|
||||
SendableChooser,
|
||||
SendableChooserBase,
|
||||
SensorUtil,
|
||||
SerialPort,
|
||||
Servo,
|
||||
SharpIR,
|
||||
SmartDashboard,
|
||||
Solenoid,
|
||||
Spark,
|
||||
SparkMini,
|
||||
StadiaController,
|
||||
SystemServer,
|
||||
Talon,
|
||||
TimedRobot,
|
||||
Timer,
|
||||
TimesliceRobot,
|
||||
Tracer,
|
||||
Victor,
|
||||
VictorSP,
|
||||
Watchdog,
|
||||
XboxController,
|
||||
getCurrentThreadPriority,
|
||||
getDeployDirectory,
|
||||
getErrorMessage,
|
||||
getOperatingDirectory,
|
||||
getTime,
|
||||
setCurrentThreadPriority,
|
||||
wait,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"ADXL345_I2C",
|
||||
"AddressableLED",
|
||||
"Alert",
|
||||
"AnalogAccelerometer",
|
||||
"AnalogEncoder",
|
||||
"AnalogGyro",
|
||||
"AnalogInput",
|
||||
"AnalogPotentiometer",
|
||||
"CAN",
|
||||
"CANStatus",
|
||||
"Color",
|
||||
"Color8Bit",
|
||||
"Compressor",
|
||||
"CompressorConfigType",
|
||||
"DMC60",
|
||||
"DSControlWord",
|
||||
"DataLogManager",
|
||||
"DigitalInput",
|
||||
"DigitalOutput",
|
||||
"DoubleSolenoid",
|
||||
"DriverStation",
|
||||
"DutyCycle",
|
||||
"DutyCycleEncoder",
|
||||
"Encoder",
|
||||
"Field2d",
|
||||
"FieldObject2d",
|
||||
"I2C",
|
||||
"IterativeRobotBase",
|
||||
"Jaguar",
|
||||
"Joystick",
|
||||
"Koors40",
|
||||
"LEDPattern",
|
||||
"Mechanism2d",
|
||||
"MechanismLigament2d",
|
||||
"MechanismObject2d",
|
||||
"MechanismRoot2d",
|
||||
"MotorControllerGroup",
|
||||
"MotorSafety",
|
||||
"Notifier",
|
||||
"OnboardIMU",
|
||||
"PS4Controller",
|
||||
"PS5Controller",
|
||||
"PWM",
|
||||
"PWMMotorController",
|
||||
"PWMSparkFlex",
|
||||
"PWMSparkMax",
|
||||
"PWMTalonFX",
|
||||
"PWMTalonSRX",
|
||||
"PWMVenom",
|
||||
"PWMVictorSPX",
|
||||
"PneumaticHub",
|
||||
"PneumaticsBase",
|
||||
"PneumaticsControlModule",
|
||||
"PneumaticsModuleType",
|
||||
"PowerDistribution",
|
||||
"Preferences",
|
||||
"RobotBase",
|
||||
"RobotController",
|
||||
"RobotState",
|
||||
"RuntimeType",
|
||||
"SD540",
|
||||
"SendableBuilderImpl",
|
||||
"SendableChooser",
|
||||
"SendableChooserBase",
|
||||
"SensorUtil",
|
||||
"SerialPort",
|
||||
"Servo",
|
||||
"SharpIR",
|
||||
"SmartDashboard",
|
||||
"Solenoid",
|
||||
"Spark",
|
||||
"SparkMini",
|
||||
"StadiaController",
|
||||
"SystemServer",
|
||||
"Talon",
|
||||
"TimedRobot",
|
||||
"Timer",
|
||||
"TimesliceRobot",
|
||||
"Tracer",
|
||||
"Victor",
|
||||
"VictorSP",
|
||||
"Watchdog",
|
||||
"XboxController",
|
||||
"getCurrentThreadPriority",
|
||||
"getDeployDirectory",
|
||||
"getErrorMessage",
|
||||
"getOperatingDirectory",
|
||||
"getTime",
|
||||
"setCurrentThreadPriority",
|
||||
"wait",
|
||||
]
|
||||
|
||||
# Error reporting
|
||||
from ._impl.report_error import reportError, reportWarning
|
||||
|
||||
__all__ += ["reportError", "reportWarning"]
|
||||
|
||||
del _init__wpilib
|
||||
|
||||
from .cameraserver import CameraServer
|
||||
from .deployinfo import getDeployData
|
||||
|
||||
try:
|
||||
from .version import version as __version__
|
||||
except ImportError:
|
||||
__version__ = "master"
|
||||
|
||||
from ._impl.main import run
|
||||
|
||||
__all__ += ["CameraServer", "run"]
|
||||
Reference in New Issue
Block a user