src/orientation_sensor.cpp
OrientationValues::OrientationValues(OrientationSensor* orientation_sensor,
                                     OrientationValType val_type,
                                     uint report_interval_ms, String config_path)
    : NumericSensor(config_path),
      orientation_sensor_{orientation_sensor},
      value_type_{val_type},
      report_interval_ms_{report_interval_ms} {
  load_configuration();
  save_mag_cal_ = 0;

}
/**
 * @brief Constructor sets up the frequency of output and the Signal K path.
 *
 * @param orientation_sensor Pointer to the physical sensor's interface
 * @param val_type The type of orientation parameter to be sent
 * @param report_interval_ms Interval between output reports
 * @param config_path RESTful path by which reporting frequency can be
 * configured.
 */
@brief Constructor sets up the frequency of output and the Signal K path.
@param orientation_sensor Pointer to the physical sensor's interface
@param val_type The type of orientation parameter to be sent
@param report_interval_ms Interval between output reports
@param config_path RESTful path by which reporting frequency can be
configured.
@brief Constructor sets up the frequency of output and the Signal K path . @param orientation_sensor Pointer to the physical sensor ' s interface @param val_type The type of orientation parameter to be sent @param report_interval_ms Interval between output reports @param config_path RESTful path by which reporting frequency can be configured .
OrientationValues::OrientationValues(OrientationSensor* orientation_sensor,
                                     OrientationValType val_type,
                                     uint report_interval_ms, String config_path)
    : NumericSensor(config_path),
      orientation_sensor_{orientation_sensor},
      value_type_{val_type},
      report_interval_ms_{report_interval_ms} {
  load_configuration();
  save_mag_cal_ = 0;
}
OrientationValues :: OrientationValues ( OrientationSensor * orientation_sensor , OrientationValType val_type , uint report_interval_ms , String config_path ) : NumericSensor ( config_path ) , orientation_sensor_ { orientation_sensor } , value_type_ { val_type } , report_interval_ms_ { report_interval_ms } { load_configuration ( ) ; save_mag_cal_ = 0 ; }
@brief Constructor sets up the frequency of output and the Signal K path.
@brief Constructor sets up the frequency of output and the Signal K path .