View Single Post
  #2   Spotlight this post!  
Unread 09-02-2014, 14:14
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: Thread speed in C++

It would be akin to the continuous methods, though a little bit faster, I would suspect.
You're likely to have an unfun time splitting out something like a PID controller to a separate thread- and for no benefit. In my experience, PID doesn't take any resources- or not enough to cause lag. I've ran a few PID loops (Of my own making- not the builtin class.) concurrently through the TeleopPeriodic functions, with no problems... what PID algorithms are you using that take lots of resources?
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Reply With Quote