Go to Post You people are weird... Now if you'll excuse me, I have some code to debug and I need to figure out where to get tank tracks. - sciguy125 [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 17-01-2017, 16:26
WalnutsAndBolts WalnutsAndBolts is offline
Registered User
FRC #6643 (Walnuts and Bolts)
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Racine Wisconsin
Posts: 32
WalnutsAndBolts is an unknown quantity at this point
Exclamation Running Robot

Hi
I have been trying to make my robot work for over 2 hours now. My radio is working and I have tried the screen steps instructions with no luck. How do I get this thing working and how do I program it? Thank you for your help!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2017, 16:27
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 877
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Running Robot

are you programming with labview, java or C++? which instructions are you using as a guide (link please so we can help you more quickly)
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2017, 16:29
WalnutsAndBolts WalnutsAndBolts is offline
Registered User
FRC #6643 (Walnuts and Bolts)
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Racine Wisconsin
Posts: 32
WalnutsAndBolts is an unknown quantity at this point
Re: Running Robot

Quote:
Originally Posted by engunneer View Post
are you programming with labview, java or C++? which instructions are you using as a guide (link please so we can help you more quickly)
We are using LabView and here is a link:
http://wpilib.screenstepslive.com/s/...ogram-wireless
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2017, 16:35
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 877
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Running Robot

your team number and battery voltage show up?

Are the communication, robot code and joystick lights all green?

those will say where to start.

also, other people that might read this thread, please jump in because i won't be available anymore pretty soon.
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2017, 16:39
WalnutsAndBolts WalnutsAndBolts is offline
Registered User
FRC #6643 (Walnuts and Bolts)
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Racine Wisconsin
Posts: 32
WalnutsAndBolts is an unknown quantity at this point
Re: Running Robot

Quote:
Originally Posted by engunneer View Post
your team number and battery voltage show up?

Are the communication, robot code and joystick lights all green?
The communications and robot code are not coming up green.The team number is up, but I think that I manually entered it? I also did bridge my radio.
Reply With Quote
  #6   Spotlight this post!  
Unread 17-01-2017, 16:47
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 877
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Running Robot

ok, focus on communications first. can you get to the roborio configuration page in a web browser (even if you don't have silverlight, you should at least get something)

verify your ip addresses or mDNS setup. http://wpilib.screenstepslive.com/s/...rio-networking

specifically the troubleshooting link http://wpilib.screenstepslive.com/s/...anual-id=24193
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
Reply With Quote
  #7   Spotlight this post!  
Unread 17-01-2017, 16:50
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,908
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: Running Robot

Your radio should be setup as a 2.4GHz access point, not as a bridge, but if your selection had 2.4GHz in it anywhere, then it's okay.

Does your team number show up in your PC's wireless selection list and did you connect to it (example attached)?
Attached Thumbnails
Click image for larger version

Name:	WirelessConnection.jpg
Views:	45
Size:	24.5 KB
ID:	21562  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2017, 10:15
WalnutsAndBolts WalnutsAndBolts is offline
Registered User
FRC #6643 (Walnuts and Bolts)
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Racine Wisconsin
Posts: 32
WalnutsAndBolts is an unknown quantity at this point
Re: Running Robot

Quote:
Originally Posted by Mark McLeod View Post
Your radio should be setup as a 2.4GHz access point, not as a bridge, but if your selection had 2.4GHz in it anywhere, then it's okay.

Does your team number show up in your PC's wireless selection list and did you connect to it (example attached)?
I have that connected, but I can't drive the bot. I have attached an image of the driver station. The image is of our computer connected to the roboRIO via Ethernet dongle. I uploaded the basic code, but the robot is not responding.
Reply With Quote
  #9   Spotlight this post!  
Unread 18-01-2017, 10:16
WalnutsAndBolts WalnutsAndBolts is offline
Registered User
FRC #6643 (Walnuts and Bolts)
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Racine Wisconsin
Posts: 32
WalnutsAndBolts is an unknown quantity at this point
Re: Running Robot

Quote:
Originally Posted by WalnutsAndBolts View Post
I have that connected, but I can't drive the bot. I have attached an image of the driver station. The image is of our computer connected to the roboRIO via Ethernet dongle. I uploaded the basic code, but the robot is not responding.
Here is the link:
https://photos.google.com/search/_tr...0_QYCN8MhSqEnh
Reply With Quote
  #10   Spotlight this post!  
Unread 18-01-2017, 10:18
WalnutsAndBolts WalnutsAndBolts is offline
Registered User
FRC #6643 (Walnuts and Bolts)
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Racine Wisconsin
Posts: 32
WalnutsAndBolts is an unknown quantity at this point
Re: Running Robot

Quote:
Originally Posted by WalnutsAndBolts View Post
I have that connected, but I can't drive the bot. I have attached an image of the driver station. The image is of our computer connected to the roboRIO via Ethernet dongle. I uploaded the basic code, but the robot is not responding.
Here is the image
Reply With Quote
  #11   Spotlight this post!  
Unread 18-01-2017, 10:19
WalnutsAndBolts WalnutsAndBolts is offline
Registered User
FRC #6643 (Walnuts and Bolts)
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Racine Wisconsin
Posts: 32
WalnutsAndBolts is an unknown quantity at this point
Re: Running Robot

Quote:
Originally Posted by Mark McLeod View Post
Your radio should be setup as a 2.4GHz access point, not as a bridge, but if your selection had 2.4GHz in it anywhere, then it's okay.

Does your team number show up in your PC's wireless selection list and did you connect to it (example attached)?
Actual Link here:
https://goo.gl/photos/8RejK5yHUt5hNfBM9
Reply With Quote
  #12   Spotlight this post!  
Unread 18-01-2017, 10:30
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Running Robot

Quote:
Originally Posted by WalnutsAndBolts View Post
How do I get this thing working and how do I program it?
"how do I program it" is the first step. You have to install the preferred environment on your Programming Computer (which can also be your Driver's Station). Write the Code. Compile it.

At that point, you are ready to attempt communicating with the Robot.

Do the basic robot setup (battery, pdp, crio). Also attache a motor controller, and put a Volt Meter on the output. Alternatively, you can setup the pneumatic system (compressor, pressure sensor).

Program and setup the radio. Update the cRio firmware.

Establish communications with the robot (I suggested tethered for the first time until you are sure it works).
Deploy the code.
Enable the robot.

What you want to do with your code is energize the Motor Controller (without the motor attached), or enable the pneumatic system and hear the compressor start up. Have it cycle on and off (1 second on, 1 second off).

At that point, you have gotten code to run on your robot.
__________________

Reply With Quote
  #13   Spotlight this post!  
Unread 18-01-2017, 10:36
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,908
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: Running Robot

With Ethernet from your picture, it looks like your robot is running fine.
Does it not respond to your joystick?

Check the USB tab in the Driver Station (on the left-the tab with a USB symbol) to see where your joystick has been connected. For the basic LabVIEW project it should be in the USB 0 position, it should be green, and it should brighten whenever a button is pushed.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #14   Spotlight this post!  
Unread 18-01-2017, 10:43
WalnutsAndBolts WalnutsAndBolts is offline
Registered User
FRC #6643 (Walnuts and Bolts)
 
Join Date: Jan 2017
Rookie Year: 2017
Location: Racine Wisconsin
Posts: 32
WalnutsAndBolts is an unknown quantity at this point
Re: Running Robot

Quote:
Originally Posted by Mark McLeod View Post
With Ethernet from your picture, it looks like your robot is running fine.
Does it not respond to your joystick?

Check the USB tab in the Driver Station (on the left-the tab with a USB symbol) to see where your joystick has been connected. For the basic LabVIEW project it should be in the USB 0 position, it should be green, and it should brighten whenever a button is pushed.
Yes, the bot is not responding to the joystick. The joystick comes up in USB 0, and I can see the xyz axis things. Do we need to write code in order for this to connect, or should the robotmain file work?
Reply With Quote
  #15   Spotlight this post!  
Unread 18-01-2017, 10:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,908
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: Running Robot

Check that your motor controllers for the left side are connected with a PWM cable to the roboRIO PWM 0 port, while the right side motor controller is connected to PWM 1. If you have two motors per side then use a PWM splitter on each side.
The default code assumes one motor per side and the left side motor controller connected to PWM 0 on the roboRIO, the right side motor controller connected to PWM 1.

The default project described in screensteps should just work.
The joystick will be in arcade mode y-axis is forward and back, x-axis causes turns.

P.S.
I should have asked what the status lights are doing on your motor controllers (and which model motor controllers you are using-white Spark ones?)?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 18-01-2017 at 11:01.
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 15:35.

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