From 4e7d5e9ecfe1fd22f1fd618bceef7057bfb3ab55 Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Wed, 11 Oct 2023 18:41:51 +1100 Subject: [PATCH] AP_Common: Fix some typos Fixed some typos found in the code. --- libraries/AP_Common/Location.cpp | 2 +- libraries/AP_Common/Location.h | 2 +- libraries/AP_Common/tests/test_location.cpp | 2 +- libraries/AP_Common/tests/test_nmea_print.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Common/Location.cpp b/libraries/AP_Common/Location.cpp index 398656c650..f466e99db2 100644 --- a/libraries/AP_Common/Location.cpp +++ b/libraries/AP_Common/Location.cpp @@ -485,7 +485,7 @@ int32_t Location::diff_longitude(int32_t lon1, int32_t lon2) } /* - limit lattitude to -90e7 to 90e7 + limit latitude to -90e7 to 90e7 */ int32_t Location::limit_lattitude(int32_t lat) { diff --git a/libraries/AP_Common/Location.h b/libraries/AP_Common/Location.h index 61ed03b78e..134a27e590 100644 --- a/libraries/AP_Common/Location.h +++ b/libraries/AP_Common/Location.h @@ -151,7 +151,7 @@ public: // wrap longitude at -180e7 to 180e7 static int32_t wrap_longitude(int64_t lon); - // limit lattitude to -90e7 to 90e7 + // limit latitude to -90e7 to 90e7 static int32_t limit_lattitude(int32_t lat); // get lon1-lon2, wrapping at -180e7 to 180e7 diff --git a/libraries/AP_Common/tests/test_location.cpp b/libraries/AP_Common/tests/test_location.cpp index f4bef012ef..d545c2c754 100644 --- a/libraries/AP_Common/tests/test_location.cpp +++ b/libraries/AP_Common/tests/test_location.cpp @@ -371,7 +371,7 @@ TEST(Location, Line) } /* - check if we obey basic euclidian geometry rules of position + check if we obey basic euclidean geometry rules of position addition/subtraction */ TEST(Location, OffsetError) diff --git a/libraries/AP_Common/tests/test_nmea_print.cpp b/libraries/AP_Common/tests/test_nmea_print.cpp index 139e55d6e8..36e62134ef 100644 --- a/libraries/AP_Common/tests/test_nmea_print.cpp +++ b/libraries/AP_Common/tests/test_nmea_print.cpp @@ -30,7 +30,7 @@ static DummyUart test_uart; TEST(NMEA, Printf) { - // test not enought space + // test not enough space test_uart.set_txspace(2); EXPECT_FALSE(nmea_printf(&test_uart, "TEST")); // normal test