Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Running Robot (http://www.chiefdelphi.com/forums/showthread.php?t=153821)

WalnutsAndBolts 17-01-2017 16:26

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!

engunneer 17-01-2017 16:27

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)

WalnutsAndBolts 17-01-2017 16:29

Re: Running Robot
 
Quote:

Originally Posted by engunneer (Post 1632557)
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

engunneer 17-01-2017 16:35

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.

WalnutsAndBolts 17-01-2017 16:39

Re: Running Robot
 
Quote:

Originally Posted by engunneer (Post 1632563)
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.

engunneer 17-01-2017 16:47

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

Mark McLeod 17-01-2017 16:50

Re: Running Robot
 
1 Attachment(s)
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)?

WalnutsAndBolts 18-01-2017 10:15

Re: Running Robot
 
Quote:

Originally Posted by Mark McLeod (Post 1632575)
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.

WalnutsAndBolts 18-01-2017 10:16

Re: Running Robot
 
Quote:

Originally Posted by WalnutsAndBolts (Post 1632879)
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

WalnutsAndBolts 18-01-2017 10:18

Re: Running Robot
 
Quote:

Originally Posted by WalnutsAndBolts (Post 1632879)
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

WalnutsAndBolts 18-01-2017 10:19

Re: Running Robot
 
Quote:

Originally Posted by Mark McLeod (Post 1632575)
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

rich2202 18-01-2017 10:30

Re: Running Robot
 
Quote:

Originally Posted by WalnutsAndBolts (Post 1632556)
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.

Mark McLeod 18-01-2017 10:36

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.

WalnutsAndBolts 18-01-2017 10:38

Re: Running Robot
 
Quote:

Originally Posted by rich2202 (Post 1632887)
"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.

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

I have imaged the roboRIO and set up the radio, but do I need to image or setup anything else?

Also, how would I write a basic code in labview so that I can use the joystick in the KOP?

WalnutsAndBolts 18-01-2017 10:43

Re: Running Robot
 
Quote:

Originally Posted by Mark McLeod (Post 1632895)
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?

Mark McLeod 18-01-2017 10:56

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?)?

rich2202 18-01-2017 12:29

Re: Running Robot
 
Quote:

Originally Posted by WalnutsAndBolts (Post 1632896)
I have imaged the roboRIO and set up the radio, but do I need to image or setup anything else?

LabVIEW for FRC and the FRC Driver Station

https://wpilib.screenstepslive.com/s.../13811/c/57243
https://wpilib.screenstepslive.com/s/4485/m/24192

Quote:

Also, how would I write a basic code in labview so that I can use the joystick in the KOP?
Have you done this yet:
https://wpilib.screenstepslive.com/s/4485/m/13811

IMHO: Make sure you can deploy code and have it run ("hello world" type program). Then you can figure out how to get input (joystick) and drive motors. I don't know Labview, but I assume you need to define the USB Joystick before you can start using it in your code. I believe there is a default joystick type drive that you can use to connect the joystick to your drive motors (which you also may need to define).


All times are GMT -5. The time now is 07:12.

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