๐ฆ ืกืืืืจื
ืืจืืืกืืืช ืืกืืืืจื ืืฆืืื ืืช ืืืฆื ืฉื ืืจืืขื ืืืืืื ืกืืืืจื, ืืืื ืืงืืืจื ืืืืืจืืช, ืืฆืื ืืื ืืื (idle), ืกืืืื ืืจืืืื ืืืืืจืืืืช ืืฉืืื.
ืืืฉืง ืืื ืืืืช ืืืฆื ืืืขืื.
ืืงืจืืช ืฆืืจ ืืื
ืฆืืจ ืืืื ืืฉืืฉ ืืฉืืืื ืื ืืืื ืืืชืฆืืื. ืืืืฆื ืขื ืฆืืจ ืืืื ืืืืจืช ื ืงืืืช ืืื, ืืืืืฆื ืืื ืืช ืืืืืช ืืช ืืืืืจื. ืืืื ืฉื ืืืจ ืืกืื ืืจื ืืื ืื ืืืจืืืกืืืช, ืื ืฉืงื ืืืฆืื ืืื ืืช ืืืชื ื ืงืืื ืื ืืชืฆืืืืช ืืืจืืช.
ืืงืืขืื ืฆืืืืื ืืฆืืื ืื ืฉืืจืืืื ืืืืืื ืืื, ืืงืืขืื ืืืืืื ืืฆืืื ืื ืฉืืื ืืืืืืค, ืืืงืืขืื ืืคืืจืื ืืฆืืื ืื ืฉืืื ืืืฆื ืฉืืจืืช.
ืืื ืืขืฉืืช ืืื, ืืืงืืื ืืช ืืกืื ืืขื ืฆืืจ ืืืื ืืืืืืื ืืืขืื ืื ืืืื. ืืคืฉืจ ืื ืืืืืจ ืืืื ืขื ืืื ืืืืฆื ืืืจืืจื ืชืื ืืืืงืช ืืงืฉ Shift. ืืื ืืืื ืฉืืืื ืืืืื ื, ืืืืืื ืืืคืงืืช (ืืืืฉืืจืื ืชืืืืื) ืื ืืืืฆืื ืืืืจืจืื ืขื ืฆืืจ ืืืื. ืืืืืืจ ืื, ืืืืื ืฉืืืื ืืฉืืจืจืช ืืช ืื ืขืืื ืืืืื ืื ืืืื, ืืืืืื ืขื ืืกืืฃ ืืืื ื ื ืืขืืช ืืืื ืืืืจื. ืืืืฆื ืขื Ctrl+\ ืขืืฉื ืืื ืืฉืืจืืช ืืืื ืฉืื ืืจืืืื ืืืืคืฉืจ (enabled).

ืืืกืคืช ืืงืืจืืชโ
ืืื ืืืชืืื, ืืืจืจืื ืฉืื ืืืืืจ "ืืงืืจืืช". ืืคืฉืจ ืืืืืง ืืงืืจ ืืขืืจืช ืืคืชืืจ ื-X, ืื ืืืกืชืืจ ืืืชื ืืื ืืช ืืืืืฆื ืขื ืกืื ืืขืื ืื ืืืืืฆื ืืคืืื ืขื ืฉื ืืฉืื. ืืื ืืืกืืจ ืืช ืื ืืืงืืจืืช ืืืช ืืืช, ืืืืฆืื ืขื ืกืื ืืคื ืืื ืืืืชืจืช ืืืืืจืื ื ืืงืื ืืืื. ืืคืฉืจ ืืฉื ืืช ืืช ืกืืจ ืืืงืืจืืช ืืจืฉืืื ืขื ืืื ืืจืืจื.
ืืื ืืืชืืื ืืืฉืืช ืื ืืงืืจ, ืืืืฆืื ืขื ืืกืื ืืฆืืขืื ื ืื ืืืืฆืื ืืืืฆื ืืื ืืช ืขื ืฉื ืืฉืื. AdvantageScope ืชืืืืช ืืฉืืืฉื ืกืืื ืืงืืจืืช:
- ืืืืจืืืืช ืืืืื: ืืขืจื ืฉื ืืจืืขื ืืฆืื ืืืืืื ืกืืืืจื, ืฉืืืฆืืื ืืืืงืืืจืื ืืืืืืจืื.
- ืืืืจืืืืช ืจืืืื: ืืืืจืืืืช ืงืืืืืช ืืืืืืชืืืช ืฉืืืฆืืืช ืืืจืื ืืืืืืจืื.
- ืกืืืื: ืืืืืช ืฉืืฉืืฉืช ืืกืืืื ืืืืืืจืื.
ื ืืชื ืืืฆืื ืืฆืื ืืืืืื ืกืืืืจื ืื ืืืจืืืกืืืช ๐บ๏ธ ืืืจืฉ 2D ื-๐ ืืืจืฉ 3D.
ืคืืจืื ื ืชืื ืืโ
ืืฉ ืืคืจืกื ืืช ืื ืชืื ืื ื-struct ืื protobuf ืืงืืื ืืืชืื, ืืืืฆืขืืช ืืืืคืืกืื SwerveModuleVelocity[], ChassisVelocities, Rotation2d, ืื Rotation3d.
ืกืคืจืืืช ืจืืืช ืชืืืืืช ืืคืืจืื struct, ืืืื WPILib ื-AdvantageKit. ืืืืืช ืืงืื ืืืื ืืจืื ืืื ืืจืฉืื ืืฆืื ืืืืืื ืกืืืืจื.
- Java
- C++
- Python
- AdvantageKit
SwerveModuleVelocity[] states = new SwerveModuleVelocity[] {
new SwerveModuleVelocity(),
new SwerveModuleVelocity(),
new SwerveModuleVelocity(),
new SwerveModuleVelocity()
};
Telemetry.log("MyStates", states);
std::array<wpi::math::SwerveModuleVelocity, 4> states{
wpi::math::SwerveModuleVelocity{},
wpi::math::SwerveModuleVelocity{},
wpi::math::SwerveModuleVelocity{},
wpi::math::SwerveModuleVelocity{}
};
wpi::telemetry::Log("MyStates", states);
from wpimath import SwerveModuleVelocity
import telemetry
states = [
SwerveModuleVelocity(),
SwerveModuleVelocity(),
SwerveModuleVelocity(),
SwerveModuleVelocity(),
]
telemetry.log("MyStates", states, element_type=SwerveModuleVelocity)
SwerveModuleVelocity[] states = new SwerveModuleVelocity[] {
new SwerveModuleVelocity(),
new SwerveModuleVelocity(),
new SwerveModuleVelocity(),
new SwerveModuleVelocity()
};
Logger.recordOutput("MyStates", states);
ืืฉื ืช 2027, ืืื ื ืื ืชืื ืื ืืื ืฉืื ื ื-SwerveModuleState ื-SwerveModuleVelocity.
ืขืืืจ ืงืืืฆื ืืืื ืฉื ืืฆืจื ืืคื ื WPILib 2027 ื-Systemcore, ืืืืคืืกืื ืืืฉื ืื ืฉื SwerveModuleState ืขืืืื ื ืชืืืื ืืชืฆืืื.
ืชืฆืืจืโ
ืืคืฉืจืืืืช ืืืืืจื ืืืืืช ืืืื ืืช:
- ืืืืจืืช ืืงืกืืืืืช: ืืืืืจืืช ืืืจืืืช ืฉืืืืืืืื ืืกืืืืื ืืืืืข ืืืื; ืืฉืืฉืช ืืงืืืขืช ืืืจื ืืืืงืืืจืื.
- ืืืื ืืกืืจืช: ืืืจืืงืื ืืื ืืืืืื ืืกืืืืจื ืืฆืืจ ืืืื-ืฉืืื ืืืฆืืจ ืงืืืื-ืืืืจื. ืืฉื ื ืืช ืืืก ืืืืืื ืฉื ืืืืืจืืช ืืจืืืื.
- ืืืืื: ืืฉื ื ืืช ืืืืืื ืฉืืืื ืืืคื ืืช ืืืืืจืืช ืืจืืืื. ืฉืืืืฉื ืืืืืื ืืื ืืืชืืื ืืช ืืืืืืจืื ืื ืชืื ื ืชื ืืื ืื ืืกืจืืื ื ืืฉืืง.