Can you please describe HOW its not working as expected? What do you expect? What is it doing instead? Screenshots from tools like AdvantageScope speak volumes as well.
Lastly, a link to your actual code would help immensely when asking programming-related questions
Why not? I think I included that to be sure that the bindings are not present during autonomous. I can remove it if you think its an unnecessary complication
I mean, “setDriveMode()” doesn’t seem at all related to what its doing (admittedly I’m on my phone, so may have missed something). Also, the configureBindings call (by default) is called in the RobotContainer constructor. Is there a reason it should need to be called repeatedly?
Thank you @nstrike .
I have tried both changes suggested by you.
Now I see attached behavior.
When I press forward on my xbox joystick, I see wheels oscillating rather than moving forward.
I am not sure how to approach that.
Any pointers on process to do it, will be helpful!
BTW, in console messages I see below periodically.
CAN frame not received/too-stale. Check the CAN bus wiring, CAN bus utilization, and power to the device.
from: pigeon 2 13 (“”) Status Signal AngularVelocityZWorld
at: Stack Trace not received for performance reasons.
CAN utilization is less than 40%. I have only 13 CAN devices. (8 sparkmax, 4 Encoders for swerve and Pigeon 2.0 IMU).
But I have put chassis on wooden block. So it may be shacking a bit.