View Single Post
  #5   Spotlight this post!  
Unread 31-01-2014, 02:04
TheVoid's Avatar
TheVoid TheVoid is offline
C++ programmer
AKA: Liam Taylor
FRC #2605 (Sehome Seamonsters)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Bellingham
Posts: 8
TheVoid is an unknown quantity at this point
Re: CANJaguar "Server" - Open Source.

Our code should not have been preempting anything else due to usage, as the only relevant running tasks were the FRC_UserProgram Task and the SHS_Autonomous Task, (Our separately-tasked autonomous,) neither of which should have been doing much. The Autonomous spends most of it's time on
Code:
Wait ()
calls, and the AutonomousPeriodic function was empty.

Taking a look at the log file now, we were using about 7-10% of the CPU during autonomous runs. (Screenshot attached)

My theory stands that it's got something to do with the workings of
Code:
void FRC_NetworkCommunication_JaguarCANDriver_sendMessage ( uint32_t messageID, const uint8_t *data, uint8_t dataSize, int32_t *status );
Although perhaps something is interrupting it improperly somehow. I do know that VxWorks can be tricky with ISRs, although that sounds like a bit of a long-shot.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2014-01-30 at 10.52.03 PM.png
Views:	17
Size:	297.6 KB
ID:	16033  
__________________
"Just look for the rectangle. Simple!"
Reply With Quote