Skip to content

Scheduling a component faster than 1Hz #988

Answered by timcanham
ThibFrgsGmz asked this question in Q&A
Discussion options

You must be logged in to vote

If you look here:

https://github.com/nasa/fprime/blob/devel/RPI/Top/Main.cpp#L57

The Linux timer will drive the RateGroupDriver at 10 Hz with this line:

linuxTimer.startTimer(100); 

i.e. every 100ms.

If you want to drive the RateGroupDriver's fundamental tick at higher rate, lower this parameter. Then use the table to divide that frequency down to slower ones for other rate groups. Granted, 60Hz isn't an even number of milliseconds, but I don't know how important 60Hz exactly is.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ThibFrgsGmz
Comment options

Comment options

You must be logged in to vote
4 replies
@ThibFrgsGmz
Comment options

@timcanham
Comment options

@ThibFrgsGmz
Comment options

@timcanham
Comment options

Answer selected by ThibFrgsGmz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants