![]() |
Random questions from first year programmer
Hey everyone!
As you can tell, it's my first year programming and I have no idea what to do. My team has no programming mentor so I'm just relying on CD. I was hoping someone could answer some of my questions since I finally got LabVIEW up and running. 1. What's the difference between Arcade Drive Robot and Arcade Robot with Arm? 2. Which one should I choose to start the code? 3. Can you explain how to program an Arcade Drive so that someone with no programming experience can understand? I'll be putting up more questions as I go along, so please bear with me. Thanks!::safety:: |
Re: Random questions from first year programmer
Quote:
The other options just define what the optional associated simulator can handle. So just Arcade offers you a simulation that just drives around, while Arcade w/arm offers a simulation that drives around and has a simple arm to play with. Quote:
Quote:
Arcade drive mixes the x/y axis of a single joystick to get robot motion. The y axis is forward and backward. Push forward, the robot goes forward. The x axis is spin or turn. Push sideways and the robot starts to spin. Push sideways and forward and the robot arcs. |
Re: Random questions from first year programmer
How do I update the firmware for the roboRIO? These are the instructions I've been following from the LabVIEW tutorials:
Navigate to and choose: C:\Program Files (x86)\National Instruments\Shared\Firmware\cRIO\76F2\roboRIO_2.1. 0f3.cfg (or newer) I can't find the roboRIO to connect to when trying to update. Everything is connected and power is on. I already imaged the roboRIO if that might be an issue. Any suggestions? Thanks in advance! |
Re: Random questions from first year programmer
Oops, nevermind! I figured it out! :D
|
Re: Random questions from first year programmer
One of those rules of the Universe...
You can't figure a problem out until right after you post about it. |
Re: Random questions from first year programmer
Ok, so this is a very silly question, but how do I get communications to work? I have absolutely no idea how to do it. Everything has power and is connected, and the COMM on the PDP is blinking red. I don't even know where to start.
|
Re: Random questions from first year programmer
Also, how do I get the motors to respond to the joystick when I move it? The LabVIEW tutorials show it already working, so I'm lost again.
|
Re: Random questions from first year programmer
The PDP blinking red means the CAN wiring is not hooked up or is reversed somewhere. You don't need that right away if you are just run your motors, but you'll need to fix that eventually.
Is your Driver Station Enabled? Do the Communications and Robot Code indicators on the Driver Station show green? You'll need the Driver Station communicating with the roboRIO over a USB or Ethernet through the DLink router setup with the Bridge Cinfiguration Utility. |
Re: Random questions from first year programmer
Quote:
|
Re: Random questions from first year programmer
I don't have the CAN wired and I'm not using the Pneumatics Control Module.
P.S. Ignore my question about the joysticks. Apparently I had them connected wrong XD |
Re: Random questions from first year programmer
Quote:
|
Re: Random questions from first year programmer
Quote:
Quote:
|
Re: Random questions from first year programmer
Alright thank you!
New question: When I drive forward with the joystick, the motors spin backward. However going left is left and right is right. I'm using the program that was already on LabVIEW so I'm a little hesitant on changing it too much without some clarification. So, is there a way to change it or is it supposed to do that? Question 2: How do I create an autonomous program to move and lift things? Can someone show me a screenshot of a simple autonomous program? I'm not sure how to approach autonomous programming and I don't want to mess up any of the base codes. P.S. You guys are the best! :D |
Re: Random questions from first year programmer
Quote:
|
Re: Random questions from first year programmer
To talk about how the motors are backwards I agree how setup might be backwards as it has happened to me but also make sure that the electrical wiring is not backwards. I can't really explain it well as I am Software Lead and not Electrical Lead. If not you could always insert a negative block (It's under Numerical and it has a -x on it) and attacth it to you inputs and it will flip your Y-axis controls (forwards and backwards) and that should fix it software wise. Also a note that in autonomous coding forward is negative and backwards is positive values. I have always run into this situation in the old labview and the new one.
|
Re: Random questions from first year programmer
Quote:
|
Re: Random questions from first year programmer
Thanks guys! I went down the list of possible issues and it turns out the motors weren't connected to the right controllers. I swapped the positions of the PWM cables and it worked perfectly! :D
Thank you all so much! |
Re: Random questions from first year programmer
Alright, so programming has run pretty smoothly. I've got everything for teleop set and running perfectly, thanks to all of you wonderful people. :) This will probably be my one of my last questions:
How do I program pneumatics and another motor(for the arm) in autonomous? I can figure out the driving through all the examples, but I can't find a lot on pneumatics and extra motors. |
| All times are GMT -5. The time now is 20:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi