I have been assigned to take the lead on programming our robot. No one else on my team has programmed before, and I only have very limited experience with EasyC V2 For Vex. I have a few questions about how to program our FRC bot with EasyC pro, as it appears very much geared towards VEX
-Do functions such as 2 motor arcade work with FRC?
-How do I add more than 2 reciever ports (four joysticks) (or is it all one port with a bunch of channels?)
-Same with PWMs, relays.
-Do I need anything special in the initialize program?
-Will the online window work with FRC?
-I assume that the Vex USB converter will also work with FRC, am I correct?
Please correct any blatant misconceptions I may appear to have through this post, as I am very much a mechanical engineer at heart:)
One more question: How would I control a relay using a joystick? I want it so that, when the joystick is pushed 50% in either direction, the relay turns on accordingly, but I cannot find a direct way to operate a relay with a joystick.
Yes, there is 2 motor arcade, 4 motor arcade, and same with tank drive. Simply set your joystick ports and axis, and your PWM outputs (and maybe inverts if your drive isn’t set up like in the picture.)
When you go to use a function block that uses joysticks, you set the joystick port, and then the axis/button (depending on analog or digital)
All PWM and relays are accessible.
I like to set my driver motors to 127, initialize my camera, etc. Nothing is required here.
Yep, the terminal window is the same.
Yep, USB to serial is USB to serial.
You can directly operate a relay using BUTTONS on the joystick, using the OI to Relay command under the “RC Control” set. If you want it so that it works on the joystick axis, Eric’s code is great.