View Single Post
  #4   Spotlight this post!  
Unread 16-10-2012, 18:38
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: CAN Protocol/Missing .java and .class files

Can an Arduino even run Java?

The problem is that the WPILibJ libraries are tied to the cRIO hardware. For every cRIO hardware call, you would need to replace it with a call to the equivalent feature in your new platform. For example, in the PWM class, rather then calling the FPGA function to generate a PWM signal, you'd need to replace it with the generate PWM command on the Arduino. When you've done this will all the source, I expect that there won't be any calls left to com.sun.*, as well as edu.wpi.first.wpilibj.fpga.*. In addition, the communication protocol is handled by a compiled library which edu.wpi.first.wpilibj.communication.* references. You'd need to re-implement all of that also, based on reverse engineering the communication protocol. There are probably other things you need to do as well.

The Jaguar CAN protocol specs are included in the Jaguar SDK. You will need to program the jaguars to the stock firmware, rather then the FRC firmware. This is because the FRC firmware runs in a "trusted" mode for which the protocol is not released.
Reply With Quote