FRC7902 / 2021OffSeason

0 stars 1 forks source link

Motors repeatedly set to zero #7

Open grgwng opened 3 years ago

grgwng commented 3 years ago

When using set() for controlling speed controllers, the speed controllers are repeatedly set to zero. You can see this by going on this issue's branch and simulating the autonomous. Open a new plot (Plot -> New Plot Window -> Click "Add Plot" -> Make the window bigger). Under Hardware make sure "Other devices" is checked and find that window. Look for Victor SPX[4]. Open it and drag "percentOutput" to the empty plot. Now when you run the autonomous, the motor values should show on the plot. The issue are the spikes where the motor controller is set to zero for some reason.