Troubleshooting
Esta página ainda não foi traduzida. Mostrando a versão em inglês.
Common problems and how to solve them, grouped by area.
#OpMode and Commands
- Commands never run: the scheduler is not running. Add
addComponents(new EasyCommandComponent())ininitialize(), or callscheduler.run()once per loop. - Triggers never fire: triggers are polled by the scheduler. Make sure it runs every loop.
- Subsystem
init()orloop()is never called: add the subsystem to anEasySubsystemComponent, or call them yourself in a plainOpMode. - telemetry shows twice or flickers:
EasyOpModecallstelemetry.update()for you. Remove your own call.
#Gamepad
- Presses, releases and toggles never change: call
update()on theEasyGamepadonce at the start of every loop. - A press is missed: the debounce time is too high for that button. Lower it with setDebounce.
- Pushing the stick up gives a negative value: call
setInvertY(true).
#Hardware
- A servo says it is at target all the time: no speed is set. Call
setSpeed(...)so the position can be estimated. - Homing never finishes: homeToPhysicalLimit must be called every loop until it returns true, with a stall current that the mechanism really reaches.
- CR servo control does nothing: call
update()every loop and configure an encoder. - The IMU heading drifts or is reversed: check the logo and USB directions, and use
invertGyro()when the sign is wrong. - A digital sensor flickers: set a threshold in
EasyDigitalDeviceand callupdate()every loop.
#Drivebases
- The robot turns when you drive forward: check the order of the motors and the right side inversion. Do not invert the same side twice.
- Strafe behaves like forward: driveRobotCentric takes strafe first, and
DrivePowerstakes forward first. - Field-centric driving rotates wrongly: the heading must be in radians, with the right sign and zero reference.
- Swerve ignores maxOutput = 0: use
stop().
#Dashboard
- The page does not open: check the Wi-Fi connection, the address http://192.168.43.1:8090 and that the dashboard was not turned off in the app menu or by the EasyDash: disable
OpMode. - Motor values stay empty: the dashboard only shows values your code has already read. Call
getRPM()orgetPosition(). - The camera image is missing: start the camera, or register your
VisionPortalwithEasyDash.camera(...). - The robot looks too big or too small on the field: set the size with the L and W boxes or with EasyDash.robotSize.
#Vision
- The Limelight pose looks unstable: the dashboard shows MegaTag 1. For MegaTag 2, call
updateRobotOrientation(yaw)every loop and readgetBotposeMT2(). - The distance of a ball is wrong: set the ball diameter and the field of view on
EasyCamera, or the mount height and angle onEasyLimelight.
#Renamed Classes
Older documentation used other names for some classes. Use the current ones:
- EzServo: now
EasyServo. - EzServoGroup: now
EasyServoGroup. The group of continuous servos isEasyCRServoGroup. - EzCRServo: now
EasyCRServo. - EzAbsoluteAnalogEncoder: now
EasyAbsoluteAnalogEncoder. - PIDCoefficients and PIDFCoefficients: now
EasyPIDCoefficientsandEasyPIDFCoefficients. - EasyProfiledPid: now
EasyProfiledPID. - EasyRevTOFDistance and Point: removed. Use
EasyRevDistanceSensorand Pose2d or Translation2d.
Última atualização 2026-11-16