Thread: Stall detection
View Single Post
  #11   Spotlight this post!  
Unread 02-04-2013, 09:53
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 581
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Stall detection

I wouldn't get too worried about the perf of that particular for loop, since the array only has three elements. It's very possible the compiler unrolls that loop anyways.

In an FRC robot, big picture choices like your vision processing strategy will have a much, much bigger impact on CPU utilization than tuning a small loop.