View Single Post
  #3   Spotlight this post!  
Unread 29-01-2017, 12:53
dirtbikerxz's Avatar
dirtbikerxz dirtbikerxz is offline
Captain | Driver | CAD | Junior
AKA: Rohit Gondi
FRC #3991 (KnightVision)
Team Role: Driver
 
Join Date: Nov 2014
Rookie Year: 2015
Location: Baton Rouge, LA
Posts: 494
dirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud ofdirtbikerxz has much to be proud of
Re: Having issues controlling multiple SPARKs

It sounds like you are assigning two sparks that are controlling the same gearbox to two separate pwm ports.... Don't do that. For example if spark 1 and spark 2 are controlling two motors that are in the same gearbox, instead of connecting spark 1 and spark 2 to pwm 1 and 2 on the roborio, just split pwm 1 into 2 outputs and connect those to spark 1 and 2. Since the motors of a single gearbox will always have to be spinning in one direction, this will simplify your code, and also make sure it is impossible to make errors such as trying to spin two motors in the same gearbox in opposite directions.
__________________

Team 3991: Driver since freshman (2015-), Captain since sophomore (2016-), CADer
"The human condition is not perfect. We are not perfect specimens, any of us. We're not robots." - Michael Ovitz
My posts may or may not reflect the views of my team, they are my opinions, and mine alone.
Reply With Quote