Go to Post There should be no teams yelling "robot". - RoboMom [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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-02-2012, 21:29
austin1743 austin1743 is offline
Head Programmer - Java
FRC #1743
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Pennsylvania
Posts: 56
austin1743 is an unknown quantity at this point
Re: Java to Crio Downloading Issues

ok cool,

i have the cRio at 10.17.43.2

and the computer at 10.17.43.5 (i believe)


what is the correct range?
__________________
Team 1743
Head Programmer
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2012, 23:53
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Java to Crio Downloading Issues

Yep, that looks right.

Check firewalls and what network device the driver station is using. Can you ping the CRIO?
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2012, 11:34
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Re: Java to Crio Downloading Issues

Quote:
Originally Posted by austin1743 View Post
ok cool,

i have the cRio at 10.17.43.2

and the computer at 10.17.43.5 (i believe)


what is the correct range?
By range, he means the same IP subnet.

How IP subnets work is if you look at the IP address and subnet mask in binary, the 1s in the subnet mask mean that that bit of the address is part of the the network address, and 0s in the subnet mask mean that that bit of the address is part of the the node address. So, they are in the same subnet if all of the network bits in the IP address are the same.

So,
Code:
// pseudo-code
// Addresses in binary
cRIO   = 10.17.43.2   ; // 00001010.00010001.00101011.00000010
laptop = 10.17.42.5   ; // 00001010.00010001.00101011.00000101
netmask= 255.255.255.0; // 11111111.11111111.11111111.00000000

// binary and
cRIO_network = cRIO & netmask
laptop_network = laptop & netmask;

println(" > "+cRIO_network); println(" > "+laptop_netowork);
 > 00001010.00010001.00101011.00000000
 > 00001010.00010001.00101011.00000000

println(" > "+(cRIO_network == laptop_network))
 > true
Without doing any binary math, though, if the subnet mask is all 255s and 0s, you can tell easily; 255 means that octet is network, and 0 means node. A mask of "255.255.255.0" means that your range is "10.17.42.*".
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2012, 15:43
austin1743 austin1743 is offline
Head Programmer - Java
FRC #1743
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Pennsylvania
Posts: 56
austin1743 is an unknown quantity at this point
Re: Java to Crio Downloading Issues

thanks alot guys for the help. The cRio wasn't imaging correctly because of an IP adress issue that is now fixed

now we have a cRio that receives code greatly

we are now at another problem.

when we activate tele-op mode our robot doesn't move. I also checked the driver dashboard and i am not getting any pwm input/ output when i move the controller... i know normally i should see the first 4 pwm ports moving when i move the controller. any suggestions?
__________________
Team 1743
Head Programmer
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2012, 19:06
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Java to Crio Downloading Issues

Check in the driver station, click the SETUP tab, and look on the right hand side. Look under the tab labeled "Joystick Setup (drag to order)" and make sure at least one of those has a joystick under it. Then make sure it's in the right position. Those positions correspond to joystick values in the code. Press any button on the joystick, and the corresponding one should light up blue in that setup pane.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2012, 20:16
austin1743 austin1743 is offline
Head Programmer - Java
FRC #1743
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Pennsylvania
Posts: 56
austin1743 is an unknown quantity at this point
Re: Java to Crio Downloading Issues

i will try that tomorrow,

i am looking through the code to make sure i have it working the way it should...

i used a tank drive which works great and the joysticks moves the robot... all but i need mecanum drive to work as we have mecanum wheels on the robot...

i am quite new to programming in general and im not sure i have it set right... i looked at another teams mecanum code and it seem to look very similar... i have attached our code to this message. if someone could take a look at it and let me know what im missing that would be great and amazing.

thanks for the helps guys.
Attached Files
File Type: txt team1743 code.txt (6.2 KB, 2 views)
__________________
Team 1743
Head Programmer

Last edited by austin1743 : 13-02-2012 at 20:22.
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 11:18.

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