|
Maurice 2025
Team 668's robot for Reefscape
|
Public Member Functions | |
| __init__ (self, units.meters_per_second max_speed) | |
| telemeterize (self, swerve.SwerveDrivetrain.SwerveDriveState state) | |
Protected Attributes | |
| _drive_module_positions = self._drive_state_table.getStructArrayTopic("ModulePositions", SwerveModulePosition).publish() | |
| _drive_module_states = self._drive_state_table.getStructArrayTopic("ModuleStates", SwerveModuleState).publish() | |
| _drive_module_targets = self._drive_state_table.getStructArrayTopic("ModuleTargets", SwerveModuleState).publish() | |
| _drive_odometry_frequency = self._drive_state_table.getDoubleTopic("OdometryFrequency").publish() | |
| _drive_pose = self._drive_state_table.getStructTopic("Pose", Pose2d).publish() | |
| _drive_speeds = self._drive_state_table.getStructTopic("Speeds", ChassisSpeeds).publish() | |
| _drive_state_table = self._inst.getTable("DriveState") | |
| _drive_timestamp = self._drive_state_table.getDoubleTopic("Timestamp").publish() | |
| _field_pub = self._table.getDoubleArrayTopic("robotPose").publish() | |
| _field_type_pub = self._table.getStringTopic(".type").publish() | |
| _inst = NetworkTableInstance.getDefault() | |
| _max_speed = max_speed | |
| list | _module_directions |
| list | _module_mechanisms |
| list | _module_speeds |
| _table = self._inst.getTable("Pose") | |
| __init__ | ( | self, | |
| units.meters_per_second | max_speed ) |
Construct a telemetry object with the specified max speed of the robot. :param max_speed: Maximum speed :type max_speed: units.meters_per_second
| telemeterize | ( | self, | |
| swerve.SwerveDrivetrain.SwerveDriveState | state ) |
Accept the swerve drive state and telemeterize it to SmartDashboard and SignalLogger.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |