Skip to content

Trouble programming sensor reading #1744

Answered by ToveRumar
PapercutSmothie asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

I think that the stabilizer task reads out the sensor data from the queue before your task. However I agree that sensorsWaitDataReady() should give you what you want.

What I do doubt is that this is a feasible use case. If you manage to read out the sensor data from the queue there is no data for the stabilizer task to read. I highly doubt the Crazyflie will be able to fly without this data.

If you are only looking to print, could you print in the stabilizer task? Or put in the data in another queue or variable in the stabilizer task, for the dbgMessagerTask to read from?

Replies: 1 comment 4 replies

Comment options

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

@PapercutSmothie
Comment options

@ToveRumar
Comment options

Answer selected by PapercutSmothie
@PapercutSmothie
Comment options

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