Quote:
Originally Posted by mikets
The only thing I am unsure is if the cRIO can communicate with the 2CAN. I assume the cRIO knows how to communicate with the 2CAN since I have imaged the cRIO with "2CAN" selected, so the 2CAN driver should be running. And I am also assuming the cRIO will communicate with the 2CAN using 10.xx.xx.10 as its IP address. What else did I miss?
|
The 2CAN acts as a gateway to CAN the cRIO simply passes the CAN frame over UDP, the 2CAN has no other interaction with the CRIO.
What you see in the web dash is the result of interactions between the 2CAN and the JAG's over CAN, this and the green led on the 2CAN means you are successfully communicating with the jaguars over CAN and you are successfully communication with the 2CAN plugin on the cRIO. Your problem is most likely in your code.
I noticed that you are calling the closed loop functions. If you are trying to just control the Jag in voltage control mode you do not need to to do this. Also I do not see where you init the Jaguars.
The functions used in CAN are the same regardless of the gateway used (serial or 2CAN). The only difference is the plugin. Make sure you have the most recent plugin and 2CAN firmware (version 2.18).
A couple questions:
1. What is the state of the Jaguar LED? blinking orange or solid orange.
2. What version of 2CAN firmware and plugin are you running?
The -44087 is a timeout error.
http://www.chiefdelphi.com/forums/sh...ad.php?t=91102
http://www.chiefdelphi.com/forums/sh...ad.php?t=91825
http://www.chiefdelphi.com/forums/sh...ad.php?t=91704
http://www.chiefdelphi.com/forums/sh...ad.php?t=91047
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com
Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions