|
Re: [FTC]: FTC Labview questions
So here's what I found out today while working with the rest of my team's programming people (all of this was done with labview). First, we created a labview program that simply moved one motor forward autonomously. Just put in the block that says move FTC motor. Set it up as port 1, controller 1. Set a value for motor power between 0 and 126 (either that or 127, I can't remember which, if you have content help open it will tell you). Set the motor to move both motor A and motor B (you only need one move FTC motor block to do this). Assuming I haven't forgotten anything, this should make the robot move forward. I have attached the code that we used to make our robot move forward. If this code works then you have everything connected right. Once you have accomplished this step, download the code from ftctraining.com that says 2 joystick control (or something like this). Once you have downloaded this code onto your computer and into your robot, open up the FTC controller station (there should be a video that shows how to do this, but the file is in the C drive under lego mindstorms). Once you have opened the FTC controller station, you need to mess around with it a little bit. Enter in your robot's name, turn the station so that it is set to enable, make sure it says tele-operated mode (there are probably some other things that we did that I forget as well). We did not get our bluetooth to work, so using just these steps you would probably need to leave the usb cable that connects the robot to the computer in. There was significant lag with labview, we will likely try robotC at our next practice. Also, the motors may be inverted (likely they will be inverted for the RobotMovesForward.vi or for the teleoperated program). Hope this helps!
|