Hi, my team bought some of Vex’s Falcon 500 motors at my bequest and now were having trouble programming them. I’m trying to use one of the motors to make the arm like contraption on our robot that lifts the “power cells” into the goal hole or whatever its called stay up while the robot’s in motion. Our robot is based off of 118’s Everybot and has the same ball grabbing mechanism. The motor I’m talking about is called “217-3351_REV2” on the CAD file for the everybot.
What I’m really looking for is some example code, in Java, of how to use the encoder on the robot with an Xbox Controller and using PWM. I’ve previously only used CIM motors with spark or TalonSRX motor controllers. I have the CTRE library installed on Visual Studio Code and I’ve looked through some of the examples on CTRE’s Github but I can’t any that use the xbox controller or the encoder. The arm on our robot is currently hooked up to a TalonSRX and a mini CIM using a versplanetary gearbox. I can get it to go up and down by pressing whatever button on the xbox controller but I have no idea how to do that on the Falcon.
I should mention that I’m the only person on my team with any programming knowledge, which isn’t much. So the simplest solution is the best one. If anybody has the time or patience I’d be willing to do a Zoom meeting to show you what we’re working with.