Skip to main content

accelerometer_log_set_lower

Function accelerometer_log_set_lower 

Source
pub fn accelerometer_log_set_lower(
    draw: &LoggerDraw,
    truth: &Truth,
    seed: u64,
    index: u64,
) -> Result<Option<FlightLog>, SyntheticError>
Expand description

The log draw’s logger writes of truth, its accelerometer set to the lower full scale its part offers (Profile::accelerometer_lower_range_m_s2): the same part, noise terms and streams on the same clock, clipping at the lower range, as the BMX160 holds its maximum code past it (sensor noise §5, its datasheet p. 32), in steps of the part’s 16 bits over it, under hpr_flightdata::readings::SYNTHETIC_LOWER_RANGE_COLUMN. None for a part with no such setting.

§Errors

As log.