mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Removes one of the org.wpilib.util package conflicts for modularization. Only a few minor tweaks were required to remove the wpimath dependency.
205 lines
3.9 KiB
Python
205 lines
3.9 KiB
Python
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,
|
|
AnalogInput,
|
|
AnalogPotentiometer,
|
|
CAN,
|
|
CANStatus,
|
|
Compressor,
|
|
CompressorConfigType,
|
|
DSControlWord,
|
|
DataLogManager,
|
|
DigitalInput,
|
|
DigitalOutput,
|
|
DoubleSolenoid,
|
|
DriverStation,
|
|
DutyCycle,
|
|
DutyCycleEncoder,
|
|
Encoder,
|
|
ExpansionHub,
|
|
ExpansionHubMotor,
|
|
ExpansionHubPidConstants,
|
|
ExpansionHubServo,
|
|
Field2d,
|
|
FieldObject2d,
|
|
Gamepad,
|
|
I2C,
|
|
IterativeRobotBase,
|
|
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,
|
|
SendableBuilderImpl,
|
|
SendableChooser,
|
|
SendableChooserBase,
|
|
SensorUtil,
|
|
SerialPort,
|
|
SharpIR,
|
|
SmartDashboard,
|
|
Solenoid,
|
|
Spark,
|
|
SparkMini,
|
|
StadiaController,
|
|
SystemServer,
|
|
Talon,
|
|
TimedRobot,
|
|
Timer,
|
|
TimesliceRobot,
|
|
Tracer,
|
|
VictorSP,
|
|
Watchdog,
|
|
XboxController,
|
|
getCurrentThreadPriority,
|
|
getDeployDirectory,
|
|
getErrorMessage,
|
|
getOperatingDirectory,
|
|
getTime,
|
|
setCurrentThreadPriority,
|
|
wait,
|
|
)
|
|
|
|
__all__ = [
|
|
"ADXL345_I2C",
|
|
"AddressableLED",
|
|
"Alert",
|
|
"AnalogAccelerometer",
|
|
"AnalogEncoder",
|
|
"AnalogInput",
|
|
"AnalogPotentiometer",
|
|
"CAN",
|
|
"CANStatus",
|
|
"Compressor",
|
|
"CompressorConfigType",
|
|
"DSControlWord",
|
|
"DataLogManager",
|
|
"DigitalInput",
|
|
"DigitalOutput",
|
|
"DoubleSolenoid",
|
|
"DriverStation",
|
|
"DutyCycle",
|
|
"DutyCycleEncoder",
|
|
"Encoder",
|
|
"ExpansionHub",
|
|
"ExpansionHubMotor",
|
|
"ExpansionHubPidConstants",
|
|
"ExpansionHubServo",
|
|
"Field2d",
|
|
"FieldObject2d",
|
|
"Gamepad",
|
|
"I2C",
|
|
"IterativeRobotBase",
|
|
"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",
|
|
"SendableBuilderImpl",
|
|
"SendableChooser",
|
|
"SendableChooserBase",
|
|
"SensorUtil",
|
|
"SerialPort",
|
|
"SharpIR",
|
|
"SmartDashboard",
|
|
"Solenoid",
|
|
"Spark",
|
|
"SparkMini",
|
|
"StadiaController",
|
|
"SystemServer",
|
|
"Talon",
|
|
"TimedRobot",
|
|
"Timer",
|
|
"TimesliceRobot",
|
|
"Tracer",
|
|
"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"]
|