Skip to content

Commit

Permalink
better defaults, getter for vdrift
Browse files Browse the repository at this point in the history
  • Loading branch information
wiechula committed Mar 4, 2024
1 parent 25dbf22 commit 83dd3c5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ struct LtrCalibData {
uint64_t firstTime{}; ///< first time stamp of processed TFs
uint64_t lastTime{}; ///< last time stamp of processed TFs
long creationTime{}; ///< time of creation
float dvCorrectionA{}; ///< drift velocity correction factor A-Side (inverse multiplicative)
float dvCorrectionC{}; ///< drift velocity correction factor C-Side (inverse multiplicative)
float dvCorrectionA{1.f}; ///< drift velocity correction factor A-Side (inverse multiplicative)
float dvCorrectionC{1.f}; ///< drift velocity correction factor C-Side (inverse multiplicative)
float dvOffsetA{}; ///< drift velocity trigger offset A-Side
float dvOffsetC{}; ///< drift velocity trigger offset C-Side
float refVDrift{}; ///< reference vdrift for which factor was extracted
Expand Down Expand Up @@ -70,6 +70,8 @@ struct LtrCalibData {
return correction / nCorr;
}

float getVDrift() const { return refVDrift / getDriftVCorrection(); }

float getTimeOffset() const { return refTimeOffset + timeOffsetCorr; }

// renormalize reference and correction either to provided new reference (if >0) or to correction 1 wrt current reference
Expand Down

0 comments on commit 83dd3c5

Please sign in to comment.