Go to Post Without fail, judges always come by when the spokespeople are in the bathroom, so others should be able to cover until they're back. - Jacob Bendicksen [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-01-2015, 09:16
Wawa's Avatar
Wawa Wawa is offline
Wawa
FRC #3659 (Mighty Patriots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Miami
Posts: 30
Wawa is an unknown quantity at this point
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!
__________________
Our Plan B is our Plan A.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2015, 09:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Random questions from first year programmer

Quote:
Originally Posted by Wawa View Post
1. What's the difference between Arcade Drive Robot and Arcade Robot with Arm?
No difference as far as coding the robot goes.
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:
Originally Posted by Wawa View Post
2. Which one should I choose to start the code?
I'd just start with Arcade. It's sufficient.

Quote:
Originally Posted by Wawa View Post
3. Can you explain how to program an Arcade Drive so that someone with no programming experience can understand?
The default LabVIEW code is already programmed for Arcade drive. Look in Teleop.vi to see how that is done.
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-01-2015 at 11:25.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2015, 14:34
Wawa's Avatar
Wawa Wawa is offline
Wawa
FRC #3659 (Mighty Patriots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Miami
Posts: 30
Wawa is an unknown quantity at this point
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!
__________________
Our Plan B is our Plan A.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2015, 15:11
Wawa's Avatar
Wawa Wawa is offline
Wawa
FRC #3659 (Mighty Patriots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Miami
Posts: 30
Wawa is an unknown quantity at this point
Re: Random questions from first year programmer

Oops, nevermind! I figured it out!
__________________
Our Plan B is our Plan A.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2015, 15:21
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 22-01-2015, 16:49
Wawa's Avatar
Wawa Wawa is offline
Wawa
FRC #3659 (Mighty Patriots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Miami
Posts: 30
Wawa is an unknown quantity at this point
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.
__________________
Our Plan B is our Plan A.
Reply With Quote
  #7   Spotlight this post!  
Unread 22-01-2015, 17:07
Wawa's Avatar
Wawa Wawa is offline
Wawa
FRC #3659 (Mighty Patriots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Miami
Posts: 30
Wawa is an unknown quantity at this point
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.
__________________
Our Plan B is our Plan A.
Reply With Quote
  #8   Spotlight this post!  
Unread 22-01-2015, 17:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 22-01-2015, 17:18
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Random questions from first year programmer

Quote:
Originally Posted by Wawa View Post
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.
How do you have the CAN bus wired? Are you using the Pneumatic Control Module? What position is the CAN termination jumper on the PDP set to?
Reply With Quote
  #10   Spotlight this post!  
Unread 22-01-2015, 17:24
Wawa's Avatar
Wawa Wawa is offline
Wawa
FRC #3659 (Mighty Patriots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Miami
Posts: 30
Wawa is an unknown quantity at this point
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
__________________
Our Plan B is our Plan A.
Reply With Quote
  #11   Spotlight this post!  
Unread 22-01-2015, 23:28
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,659
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Random questions from first year programmer

Quote:
Originally Posted by Mark McLeod View Post
One of those rules of the Universe...
You can't figure a problem out until right after you post about it.
Actually, it's really just a restatement of the first step of the design process. Because posting a question is (hopefully) mostly a matter of defining the question.
Reply With Quote
  #12   Spotlight this post!  
Unread 23-01-2015, 11:40
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Random questions from first year programmer

Quote:
Originally Posted by Wawa View Post
...the COMM on the PDP is blinking red. I don't even know where to start.
Start at the ScreenSteps Live web site. You want to follow the links to the 2015 FRC Control System, then 2015 Control System Hardware, and finally Wiring the 2015 FRC Control System. Read each step carefully, even if it doesn't seem to apply to your system at first.

Quote:
Originally Posted by Wawa View Post
I don't have the CAN wired...
The blinking red light is confirming that you don't have CAN wired.
Reply With Quote
  #13   Spotlight this post!  
Unread 23-01-2015, 17:58
Wawa's Avatar
Wawa Wawa is offline
Wawa
FRC #3659 (Mighty Patriots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Miami
Posts: 30
Wawa is an unknown quantity at this point
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!
__________________
Our Plan B is our Plan A.
Reply With Quote
  #14   Spotlight this post!  
Unread 23-01-2015, 19:00
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Random questions from first year programmer

Quote:
Originally Posted by Wawa View Post
When I drive forward with the joystick, the motors spin backward. However going left is left and right is right.
This sounds like you might have your motors swapped. Can you verify that the Left and Right motors going into the Open 2 Motor in Begin match the actual left and right motors on your drivebase?
Reply With Quote
  #15   Spotlight this post!  
Unread 25-01-2015, 01:08
Commando386 Commando386 is offline
Registered User
AKA: Justin
FRC #5145 (Wolfbotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Gainesville Fl,
Posts: 2
Commando386 is an unknown quantity at this point
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.

Last edited by Commando386 : 25-01-2015 at 01:12.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi