View Single Post
  #6   Spotlight this post!  
Unread 20-01-2013, 13:29
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: CAN bus async receive

The ideal solution would be to store most of the config in NV memory so they don't have to be reset all the time. PID gains and control mode are the only exception, ideally you could use a single 8-byte packet for the setpoint + gains and code the control mode into the message ID (there are only a few control modes, this would be OK).

But, since the Jaguar protocol isn't exactly designed for isochronous communication and packet efficiency, sending a bunch of individual config packets is as close you can get without modifying the CAN protocol on the Jaguar side.

OP did say he was using a 2CAN, which does support higher data rates than the serial bridge.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack