Skip to content

Commit

Permalink
AP_AccelCal: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ricdevz authored and lucasdemarchi committed May 13, 2016
1 parent fcbed13 commit aa4b665
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_AccelCal/AP_AccelCal.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AP_AccelCal {
// update the state of the Accel calibrator server
void update_status();

// checks if no new sample has been recieved for considerable amount of time
// checks if no new sample has been received for considerable amount of time
bool check_for_timeout();

// check if client's calibrator is active
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_AccelCal/AccelCalibrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ bool AccelCalibrator::get_sample_corrected(uint8_t i, Vector3f& s) const {
return true;
}

// checks if no new sample has been recieved for considerable amount of time
// checks if no new sample has been received for considerable amount of time
void AccelCalibrator::check_for_timeout() {
const uint32_t timeout = _conf_sample_time*2*1000 + 500;
if (_status == ACCEL_CAL_COLLECTING_SAMPLE && AP_HAL::millis() - _last_samp_frag_collected_ms > timeout) {
Expand Down Expand Up @@ -459,7 +459,7 @@ void AccelCalibrator::calc_jacob(const Vector3f& sample, const struct param_t& p
};
}

// returns number of paramters are required for selected Fit type
// returns number of parameters are required for selected Fit type
uint8_t AccelCalibrator::get_num_params() const {
switch (_conf_fit_type) {
case ACCEL_CAL_AXIS_ALIGNED_ELLIPSOID:
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_AccelCal/AccelCalibrator.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class AccelCalibrator {
// determines if the result is acceptable
bool accept_result() const;

// returns number of paramters are required for selected Fit type
// returns number of parameters are required for selected Fit type
uint8_t get_num_params() const;

// Function related to Gauss Newton Least square regression process
Expand Down

0 comments on commit aa4b665

Please sign in to comment.