|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
Re: Java to Crio Downloading Issues
Quote:
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
|
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
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. Last edited by austin1743 : 13-02-2012 at 20:22. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|