From 2236640f664e9763f41d81730a6fad1f570e1bf1 Mon Sep 17 00:00:00 2001 From: Ricardo de Almeida Gonzaga Date: Thu, 12 May 2016 14:03:45 -0300 Subject: [PATCH] AP_HAL_Linux: Fix typos --- libraries/AP_HAL_Linux/AnalogIn_IIO.cpp | 2 +- libraries/AP_HAL_Linux/Flow_PX4.cpp | 2 +- libraries/AP_HAL_Linux/I2CDriver.h | 4 ++-- libraries/AP_HAL_Linux/RCInput_RPI.cpp | 2 +- libraries/AP_HAL_Linux/RCInput_UART.cpp | 2 +- libraries/AP_HAL_Linux/sbus.cpp | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libraries/AP_HAL_Linux/AnalogIn_IIO.cpp b/libraries/AP_HAL_Linux/AnalogIn_IIO.cpp index 08412916ae..a20ae8c8ec 100644 --- a/libraries/AP_HAL_Linux/AnalogIn_IIO.cpp +++ b/libraries/AP_HAL_Linux/AnalogIn_IIO.cpp @@ -42,7 +42,7 @@ void AnalogSource_IIO::init_pins(void) } /* - selects a diferent file descriptor among in the fd_analog_sources array + selects a different file descriptor among in the fd_analog_sources array */ void AnalogSource_IIO::select_pin(void) { diff --git a/libraries/AP_HAL_Linux/Flow_PX4.cpp b/libraries/AP_HAL_Linux/Flow_PX4.cpp index 32e51ebd17..253bf2fc9c 100644 --- a/libraries/AP_HAL_Linux/Flow_PX4.cpp +++ b/libraries/AP_HAL_Linux/Flow_PX4.cpp @@ -281,7 +281,7 @@ uint8_t Flow_PX4::compute_flow(uint8_t *image1, uint8_t *image2, } } - /* acceptance SAD distance threshhold */ + /* acceptance SAD distance threshold */ if (dist < _bottom_flow_value_threshold) { meanflowx += (float)sumx; meanflowy += (float) sumy; diff --git a/libraries/AP_HAL_Linux/I2CDriver.h b/libraries/AP_HAL_Linux/I2CDriver.h index 53aa908884..fd3da8441b 100644 --- a/libraries/AP_HAL_Linux/I2CDriver.h +++ b/libraries/AP_HAL_Linux/I2CDriver.h @@ -21,7 +21,7 @@ public: uint8_t write(uint8_t addr, uint8_t len, uint8_t* data); /* writeRegister: write a single 8-bit value to a register */ uint8_t writeRegister(uint8_t addr, uint8_t reg, uint8_t val); - /* writeRegisters: write bytes to contigious registers */ + /* writeRegisters: write bytes to contiguous registers */ uint8_t writeRegisters(uint8_t addr, uint8_t reg, uint8_t len, uint8_t* data); @@ -31,7 +31,7 @@ public: * then reads back an 8-bit value. */ uint8_t readRegister(uint8_t addr, uint8_t reg, uint8_t* data); - /* readRegister: read contigious device registers - writes the first + /* readRegister: read contiguous device registers - writes the first * register, then reads back multiple bytes */ uint8_t readRegisters(uint8_t addr, uint8_t reg, uint8_t len, uint8_t* data); diff --git a/libraries/AP_HAL_Linux/RCInput_RPI.cpp b/libraries/AP_HAL_Linux/RCInput_RPI.cpp index c2b9cb978d..e3ef05bfa7 100644 --- a/libraries/AP_HAL_Linux/RCInput_RPI.cpp +++ b/libraries/AP_HAL_Linux/RCInput_RPI.cpp @@ -472,7 +472,7 @@ void RCInput_RPI::_timer_tick() break;} } - //How many bytes have DMA transfered (and we can process)? + //How many bytes have DMA transferred (and we can process)? counter = circle_buffer->bytes_available(curr_pointer, circle_buffer->get_offset(circle_buffer->_virt_pages, (uintptr_t)x)); //We can't stay in method for a long time, because it may lead to delays if (counter > RCIN_RPI_MAX_COUNTER) { diff --git a/libraries/AP_HAL_Linux/RCInput_UART.cpp b/libraries/AP_HAL_Linux/RCInput_UART.cpp index 19334b2958..75628c5166 100644 --- a/libraries/AP_HAL_Linux/RCInput_UART.cpp +++ b/libraries/AP_HAL_Linux/RCInput_UART.cpp @@ -73,7 +73,7 @@ void RCInput_UART::_timer_tick() if (_data.magic != MAGIC) { /* try to find the magic number and move - * it to the beggining of our buffer */ + * it to the beginning of our buffer */ uint16_t magic = MAGIC; _pdata = (uint8_t *)memmem(&_data, sizeof(_data), &magic, sizeof(magic)); diff --git a/libraries/AP_HAL_Linux/sbus.cpp b/libraries/AP_HAL_Linux/sbus.cpp index 79555ed32b..ea1a09f9f0 100644 --- a/libraries/AP_HAL_Linux/sbus.cpp +++ b/libraries/AP_HAL_Linux/sbus.cpp @@ -175,7 +175,7 @@ sbus_decode(const uint8_t frame[25], uint16_t *values, uint16_t *num_values, * * Attention! This flag indicates a skipped frame only, not a total link loss! Handling this * condition as fail-safe greatly reduces the reliability and range of the radio link, - * e.g. by prematurely issueing return-to-launch!!! */ + * e.g. by prematurely issuing return-to-launch!!! */ *sbus_failsafe = false; *sbus_frame_drop = true;