From 80e052e1e9b853deaef106c3bc801c6184772706 Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Wed, 11 Oct 2023 18:41:50 +1100 Subject: [PATCH] AP_AccelCal: Fix some typos Fixed some typos found in the code. --- libraries/AP_AccelCal/AccelCalibrator.cpp | 10 +++++----- libraries/AP_AccelCal/AccelCalibrator.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AP_AccelCal/AccelCalibrator.cpp b/libraries/AP_AccelCal/AccelCalibrator.cpp index 5e90912bda..2cca0cb009 100644 --- a/libraries/AP_AccelCal/AccelCalibrator.cpp +++ b/libraries/AP_AccelCal/AccelCalibrator.cpp @@ -36,7 +36,7 @@ _sample_buffer(nullptr) /* Select options, initialise variables and initiate accel calibration Options: - Fit Type: Will assume that if accelerometer static samples around all possible orientatio + Fit Type: Will assume that if accelerometer static samples around all possible orientation are spread in space will cover a surface of AXIS_ALIGNED_ELLIPSOID or any general ELLIPSOID as chosen @@ -173,7 +173,7 @@ bool AccelCalibrator::get_sample(uint8_t i, Vector3f& s) const { return true; } -// returns truen and sample corrected with diag offdiag parameters as calculated by LSq estimation procedure +// returns true and sample corrected with diag offdiag parameters as calculated by LSq estimation procedure // returns false if no correct parameter exists to be applied along with existing sample without corrections bool AccelCalibrator::get_sample_corrected(uint8_t i, Vector3f& s) const { if (_status != ACCEL_CAL_SUCCESS || !get_sample(i,s)) { @@ -199,7 +199,7 @@ void AccelCalibrator::check_for_timeout() { } } -// returns spherical fit paramteters +// returns spherical fit parameters void AccelCalibrator::get_calibration(Vector3f& offset) const { offset = -_param.s.offset; } @@ -288,7 +288,7 @@ void AccelCalibrator::set_status(enum accel_cal_status_t status) { break; case ACCEL_CAL_COLLECTING_SAMPLE: - // Calibrator is waiting on collecting samples from acceleromter for amount of + // Calibrator is waiting on collecting samples from accelerometer for amount of // time as requested by user/GCS if (_status != ACCEL_CAL_WAITING_FOR_ORIENTATION) { break; @@ -309,7 +309,7 @@ void AccelCalibrator::set_status(enum accel_cal_status_t status) { case ACCEL_CAL_FAILED: // Calibration has failed with reasons that can range from - // bad sample data leading to faillure in tolerance test to lack of distinct samples + // bad sample data leading to failure in tolerance test to lack of distinct samples if (_status == ACCEL_CAL_NOT_STARTED) { break; } diff --git a/libraries/AP_AccelCal/AccelCalibrator.h b/libraries/AP_AccelCal/AccelCalibrator.h index df06da578d..3e3a04ffb5 100644 --- a/libraries/AP_AccelCal/AccelCalibrator.h +++ b/libraries/AP_AccelCal/AccelCalibrator.h @@ -64,7 +64,7 @@ public: // to averaged acc over time bool get_sample(uint8_t i, Vector3f& s) const; - // returns truen and sample corrected with diag offdiag parameters as calculated by LSq estimation procedure + // returns true and sample corrected with diag offdiag parameters as calculated by LSq estimation procedure // returns false if no correct parameter exists to be applied along with existing sample without corrections bool get_sample_corrected(uint8_t i, Vector3f& s) const;