Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
laelaps::LaeTunesVL6180 Class Reference

Laelaps powertrain tuning data class. More...

#include <laeTune.h>

Public Member Functions

 LaeTunesVL6180 ()
 Default constructor.
 
 ~LaeTunesVL6180 ()
 Destructor.
 
LaeTunesVL6180operator= (const LaeTunesVL6180 &rhs)
 Assignment operator. More...
 
void print (const std::string &strKey, int indent=0)
 Print out tuning parameters to stdout. More...
 

Public Attributes

int m_nTofOffset
 ToF part-to-part offset.
 
int m_nTofCrossTalk
 ToF cross-talk compensation.
 
double m_fAlsGain
 ALS analog gain.
 
int m_nAlsIntPeriod
 ALS integration period.
 

Detailed Description

Laelaps powertrain tuning data class.

Definition at line 519 of file laeTune.h.

Member Function Documentation

LaeTunesVL6180 & LaeTunesVL6180::operator= ( const LaeTunesVL6180 rhs)

Assignment operator.

Parameters
rhsRight hand side object.
Returns
*this

Definition at line 249 of file laeTune.cxx.

References m_fAlsGain, m_nAlsIntPeriod, m_nTofCrossTalk, and m_nTofOffset.

250 {
253  m_fAlsGain = rhs.m_fAlsGain;
255 
256  return *this;
257 }
int m_nTofOffset
ToF part-to-part offset.
Definition: laeTune.h:522
int m_nAlsIntPeriod
ALS integration period.
Definition: laeTune.h:525
int m_nTofCrossTalk
ToF cross-talk compensation.
Definition: laeTune.h:523
double m_fAlsGain
ALS analog gain.
Definition: laeTune.h:524
void LaeTunesVL6180::print ( const std::string &  strKey,
int  indent = 0 
)

Print out tuning parameters to stdout.

Parameters
strKeySensor key.
indentLeft indentation.

Definition at line 259 of file laeTune.cxx.

References VL6180X_FACTORY_DFT.

260 {
261  printf("%*sVL6180[%s] =\n", indent, "", strKey.c_str());
262  printf("%*s{\n", indent, "");
263 
264  printf("%*sToF Offset = ", indent+2, "");
266  {
267  printf("factory\n");
268  }
269  else
270  {
271  printf("%d\n", m_nTofOffset);
272  }
273 
274  printf("%*sToF Cross-Talk = ", indent+2, "");
276  {
277  printf("factory\n");
278  }
279  else
280  {
281  printf("%d\n", m_nTofCrossTalk);
282  }
283  printf("%*sALS Gain = %.1lf\n", indent+2, "", m_fAlsGain);
284  printf("%*sALS Integration Period = %d\n", indent+2, "", m_nAlsIntPeriod);
285 
286  printf("%*s}\n", indent, "");
287 }
int m_nTofOffset
ToF part-to-part offset.
Definition: laeTune.h:522
int m_nAlsIntPeriod
ALS integration period.
Definition: laeTune.h:525
int m_nTofCrossTalk
ToF cross-talk compensation.
Definition: laeTune.h:523
#define VL6180X_FACTORY_DFT
use factory default
Definition: laeVL6180.h:170
double m_fAlsGain
ALS analog gain.
Definition: laeTune.h:524

The documentation for this class was generated from the following files: