[WIP] Timestamps - Add timestamp chaining through timestamp_sample #8827
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
timestamp_sample
field has been used to propagate the timestamp of a measurement through theactuator_controls
topic. I completed the chain to have this working though the VTOL code in order to estimate the dead-time this module adds and being able to get the complete computation time at each loop.Here is the result of a run on a PixHawk Pro autopilot from Drotek:
The total delay - from
sensors_combined
toactuator_outputs
is approximately 4.75ms. Which makes a maximum loop frequency of ~211Hz... not 250.@dagar Not sure if you would like to merge this, but at least you have the results here.