View Single Post
  #6   Spotlight this post!  
Unread 09-02-2017, 18:25
slibert slibert is offline
Software Mentor
AKA: Scott Libert
FRC #2465 (Kauaibots)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2005
Location: Kauai, Hawaii
Posts: 374
slibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud ofslibert has much to be proud of
Re: Faster loop scheduling

Quote:
Originally Posted by euhlmann View Post
What we use fast off-thread loops for:
- Dead reckoning. Integrating gyro angle with encoder distance for approximate field position. We run it at 60 Hz, the update rate of the NavX, for best accuracy
Just wanted to let you know that the latest navX-MXP/navX-Micro has been updated this year to support a 200Hz update rate...

There's also a new callback mechanism in the C++/Java Libraries that allow you to run code (as long as it's very efficient) off of the navX IO thread:

public interface ITimestampedDataSubscriber {
public void timestampedDataReceived( long system_timestamp, long sensor_timestamp, AHRSUpdateBase sensor_data, Object context );
}

Last edited by slibert : 09-02-2017 at 18:30.
Reply With Quote