From 4250cc254bc2bc8ef9f56b22297545053fa3ed81 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sat, 2 Dec 2023 11:05:28 +0000 Subject: [PATCH] Fix typos in libs/ subdirectory --- libs/alignment/AlignmentSubsystemForDrivers.h | 4 ++-- libs/alignment/BasicMathPlugin.cpp | 4 ++-- libs/alignment/BasicMathPlugin.h | 4 ++-- libs/alignment/BuiltInMathPlugin.h | 2 +- .../ClientAPIForAlignmentDatabase.cpp | 20 +++++++++---------- .../ClientAPIForMathPluginManagement.cpp | 8 ++++---- .../ClientAPIForMathPluginManagement.h | 2 +- libs/alignment/Common.h | 4 ++-- libs/alignment/InMemoryDatabase.h | 2 +- .../MapPropertiesToInMemoryDatabase.h | 2 +- libs/alignment/MathPlugin.h | 4 ++-- libs/alignment/NearestMathPlugin.cpp | 2 +- libs/alignment/SVDMathPlugin.cpp | 2 +- libs/alignment/SVDMathPlugin.h | 2 +- ...TelescopeDirectionVectorSupportFunctions.h | 2 +- libs/alignment/alignment_white_paper.md | 8 ++++---- libs/dsp/dsp.h | 14 ++++++------- libs/dsp/fits.h | 12 +++++------ libs/dsp/sdfits.h | 4 ++-- libs/fpack/fpackutil.c | 6 +++--- libs/hid/hid_libusb.c | 8 ++++---- libs/hid/hid_mac.c | 6 +++--- libs/hid/hid_win.c | 2 +- libs/hid/hidtest.cpp | 2 +- .../indiabstractclient/abstractbaseclient.cpp | 2 +- libs/indiabstractclient/abstractbaseclient.h | 2 +- .../connectionplugins/connectioninterface.h | 2 +- .../connectionplugins/connectiontcp.h | 2 +- libs/indibase/connectionplugins/ttybase.cpp | 2 +- libs/indibase/connectionplugins/ttybase.h | 2 +- libs/indibase/defaultdevice.cpp | 6 +++--- libs/indibase/defaultdevice.h | 10 +++++----- libs/indibase/indiccd.cpp | 2 +- libs/indibase/indiccd.h | 10 +++++----- libs/indibase/indiccdchip.h | 4 ++-- libs/indibase/indicontroller.h | 2 +- libs/indibase/indicorrelator.h | 2 +- libs/indibase/indidome.cpp | 4 ++-- libs/indibase/indidome.h | 12 +++++------ libs/indibase/indidriver.c | 2 +- libs/indibase/indidriver.h | 6 +++--- libs/indibase/indidrivermain.c | 6 +++--- libs/indibase/indidustcapinterface.h | 8 ++++---- libs/indibase/indifilterinterface.h | 6 +++--- libs/indibase/indifocuserinterface.h | 4 ++-- libs/indibase/indigpsinterface.h | 2 +- libs/indibase/indiguiderinterface.h | 2 +- libs/indibase/indilightboxinterface.h | 8 ++++---- libs/indibase/indirotator.h | 2 +- libs/indibase/indirotatorinterface.h | 8 ++++---- libs/indibase/indisensorinterface.h | 6 +++--- libs/indibase/inditelescope.cpp | 4 ++-- libs/indibase/inditelescope.h | 10 +++++----- libs/indibase/indiweather.h | 2 +- libs/indibase/indiweatherinterface.h | 4 ++-- libs/indibase/stream/ccvt.h | 2 +- libs/indibase/stream/ccvt_misc.c | 2 +- libs/indibase/stream/jpegutils.c | 4 ++-- libs/indibase/stream/jpegutils.h | 2 +- libs/indibase/stream/recorder/serrecorder.cpp | 2 +- .../stream/recorder/theorarecorder.cpp | 2 +- libs/indibase/stream/streammanager.cpp | 2 +- libs/indibase/stream/streammanager_p.h | 2 +- libs/indibase/webcam/pwc-ioctl.h | 2 +- libs/indibase/webcam/v4l2_base.cpp | 4 ++-- .../v4l2_decode/v4l2_builtin_decoder.cpp | 4 ++-- libs/indiclient/baseclient.cpp | 2 +- libs/indiclient/baseclient.h | 2 +- libs/indiclientqt/baseclientqt.cpp | 2 +- libs/indiclientqt/baseclientqt.h | 2 +- libs/indicore/base64.h | 2 +- libs/indicore/indiapi.h.in | 10 +++++----- libs/indicore/indicom.c | 2 +- libs/indicore/indicom.h | 18 ++++++++--------- libs/indicore/indidevapi.h | 6 +++--- libs/indicore/lilxml.cpp | 8 ++++---- libs/indicore/lilxml.h | 8 ++++---- libs/indidevice/basedevice.h | 8 ++++---- libs/indidevice/basedevice_p.h | 2 +- libs/indidevice/indibase.h | 4 ++-- libs/indidevice/indistandardproperty.h | 4 ++-- libs/inicpp.h | 4 ++-- libs/json.h | 4 ++-- 83 files changed, 193 insertions(+), 193 deletions(-) diff --git a/libs/alignment/AlignmentSubsystemForDrivers.h b/libs/alignment/AlignmentSubsystemForDrivers.h index d0fc378a3f..aba10e6c7b 100644 --- a/libs/alignment/AlignmentSubsystemForDrivers.h +++ b/libs/alignment/AlignmentSubsystemForDrivers.h @@ -36,7 +36,7 @@ class AlignmentSubsystemForDrivers : public MapPropertiesToInMemoryDatabase, /// \brief Virtual destructor virtual ~AlignmentSubsystemForDrivers() {} - /** \brief Initilize alignment subsystem properties. It is recommended to call this function within initProperties() of your primary device + /** \brief Initialize alignment subsystem properties. It is recommended to call this function within initProperties() of your primary device * \param[in] pTelescope Pointer to the child INDI::Telecope class */ void InitAlignmentProperties(Telescope *pTelescope); @@ -173,7 +173,7 @@ class AlignmentSubsystemForDrivers : public MapPropertiesToInMemoryDatabase, * the in memory database module. This registration is performed in the constructor of * of this class. The callback is called whenever the database is * is loaded or reloaded, by default it calls the Initialise function of the MathPluginManagment module. - * \param[in] ThisPointer Pointer to the instance of this class which registered the callbck + * \param[in] ThisPointer Pointer to the instance of this class which registered the callback */ static void MyDatabaseLoadCallback(void *ThisPointer); }; diff --git a/libs/alignment/BasicMathPlugin.cpp b/libs/alignment/BasicMathPlugin.cpp index 144ce6033d..b2e2ed952f 100644 --- a/libs/alignment/BasicMathPlugin.cpp +++ b/libs/alignment/BasicMathPlugin.cpp @@ -464,7 +464,7 @@ bool BasicMathPlugin::TransformCelestialToTelescope(const double RightAscension, #ifdef CONVEX_HULL_DEBUGGING ActualFaces++; #endif - // Ignore faces containg vertex 0 (nadir). + // Ignore faces containing vertex 0 (nadir). if ((0 == CurrentFace->vertex[0]->vnum) || (0 == CurrentFace->vertex[1]->vnum) || (0 == CurrentFace->vertex[2]->vnum)) { @@ -695,7 +695,7 @@ bool BasicMathPlugin::TransformTelescopeToCelestial(const TelescopeDirectionVect #ifdef CONVEX_HULL_DEBUGGING ApparentFaces++; #endif - // Ignore faces containg vertex 0 (nadir). + // Ignore faces containing vertex 0 (nadir). if ((0 == CurrentFace->vertex[0]->vnum) || (0 == CurrentFace->vertex[1]->vnum) || (0 == CurrentFace->vertex[2]->vnum)) { diff --git a/libs/alignment/BasicMathPlugin.h b/libs/alignment/BasicMathPlugin.h index e09e630725..50d8309a89 100644 --- a/libs/alignment/BasicMathPlugin.h +++ b/libs/alignment/BasicMathPlugin.h @@ -42,7 +42,7 @@ class BasicMathPlugin : public AlignmentSubsystemForMathPlugins double &RightAscension, double &Declination); protected: - /// \brief Calculate tranformation matrices from the supplied vectors + /// \brief Calculate transformation matrices from the supplied vectors /// \param[in] Alpha1 Pointer to the first coordinate in the alpha reference frame /// \param[in] Alpha2 Pointer to the second coordinate in the alpha reference frame /// \param[in] Alpha3 Pointer to the third coordinate in the alpha reference frame @@ -67,7 +67,7 @@ class BasicMathPlugin : public AlignmentSubsystemForMathPlugins /// \param[in] pMatrix The matrix to print void Dump3x3(const char *Label, gsl_matrix *pMatrix); - /// \brief Caluclate the determinant of the supplied matrix + /// \brief Calculate the determinant of the supplied matrix /// \param[in] pMatrix Pointer to the 3x3 matrix /// \return The determinant double Matrix3x3Determinant(gsl_matrix *pMatrix); diff --git a/libs/alignment/BuiltInMathPlugin.h b/libs/alignment/BuiltInMathPlugin.h index def53391db..4f660e3805 100644 --- a/libs/alignment/BuiltInMathPlugin.h +++ b/libs/alignment/BuiltInMathPlugin.h @@ -20,7 +20,7 @@ namespace AlignmentSubsystem class BuiltInMathPlugin : public BasicMathPlugin { private: - /// \brief Calculate tranformation matrices from the supplied vectors + /// \brief Calculate transformation matrices from the supplied vectors /// \param[in] Alpha1 Pointer to the first coordinate in the alpha reference frame /// \param[in] Alpha2 Pointer to the second coordinate in the alpha reference frame /// \param[in] Alpha3 Pointer to the third coordinate in the alpha reference frame diff --git a/libs/alignment/ClientAPIForAlignmentDatabase.cpp b/libs/alignment/ClientAPIForAlignmentDatabase.cpp index 8da9c1def9..dff037865c 100644 --- a/libs/alignment/ClientAPIForAlignmentDatabase.cpp +++ b/libs/alignment/ClientAPIForAlignmentDatabase.cpp @@ -28,7 +28,7 @@ ClientAPIForAlignmentDatabase::~ClientAPIForAlignmentDatabase() bool ClientAPIForAlignmentDatabase::AppendSyncPoint(const AlignmentDatabaseEntry &CurrentValues) { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); @@ -69,7 +69,7 @@ bool ClientAPIForAlignmentDatabase::AppendSyncPoint(const AlignmentDatabaseEntry bool ClientAPIForAlignmentDatabase::ClearSyncPoints() { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); @@ -107,7 +107,7 @@ bool ClientAPIForAlignmentDatabase::ClearSyncPoints() bool ClientAPIForAlignmentDatabase::DeleteSyncPoint(unsigned int Offset) { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); @@ -158,7 +158,7 @@ bool ClientAPIForAlignmentDatabase::DeleteSyncPoint(unsigned int Offset) bool ClientAPIForAlignmentDatabase::EditSyncPoint(unsigned int Offset, const AlignmentDatabaseEntry &CurrentValues) { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); @@ -222,7 +222,7 @@ void ClientAPIForAlignmentDatabase::Initialise(INDI::BaseClient *BaseClient) bool ClientAPIForAlignmentDatabase::InsertSyncPoint(unsigned int Offset, const AlignmentDatabaseEntry &CurrentValues) { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); @@ -276,7 +276,7 @@ bool ClientAPIForAlignmentDatabase::InsertSyncPoint(unsigned int Offset, const A bool ClientAPIForAlignmentDatabase::LoadDatabase() { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); @@ -379,7 +379,7 @@ void ClientAPIForAlignmentDatabase::ProcessNewProperty(INDI::Property *PropertyP else GotOneOfMine = false; - // Tell the client when all the database proeprties have been set up + // Tell the client when all the database properties have been set up if (GotOneOfMine && (nullptr != MandatoryNumbers) && (nullptr != OptionalBinaryBlob) && (nullptr != PointsetSize) && (nullptr != CurrentEntry) && (nullptr != Action) && (nullptr != Commit)) { @@ -406,7 +406,7 @@ void ClientAPIForAlignmentDatabase::ProcessNewSwitch(ISwitchVectorProperty *Swit bool ClientAPIForAlignmentDatabase::ReadIncrementSyncPoint(AlignmentDatabaseEntry &CurrentValues) { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); @@ -458,7 +458,7 @@ bool ClientAPIForAlignmentDatabase::ReadIncrementSyncPoint(AlignmentDatabaseEntr bool ClientAPIForAlignmentDatabase::ReadSyncPoint(unsigned int Offset, AlignmentDatabaseEntry &CurrentValues) { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); @@ -520,7 +520,7 @@ bool ClientAPIForAlignmentDatabase::ReadSyncPoint(unsigned int Offset, Alignment bool ClientAPIForAlignmentDatabase::SaveDatabase() { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pAction = Action->getSwitch(); diff --git a/libs/alignment/ClientAPIForMathPluginManagement.cpp b/libs/alignment/ClientAPIForMathPluginManagement.cpp index 84d0365512..96c4dfccfd 100644 --- a/libs/alignment/ClientAPIForMathPluginManagement.cpp +++ b/libs/alignment/ClientAPIForMathPluginManagement.cpp @@ -18,7 +18,7 @@ namespace AlignmentSubsystem bool ClientAPIForMathPluginManagement::EnumerateMathPlugins(MathPluginsList &AvailableMathPlugins) { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); AvailableMathPlugins.clear(); @@ -52,7 +52,7 @@ void ClientAPIForMathPluginManagement::ProcessNewProperty(INDI::Property *Proper else GotOneOfMine = false; - // Tell the client when all the database proeprties have been set up + // Tell the client when all the database properties have been set up if (GotOneOfMine && (nullptr != MathPlugins) && (nullptr != PluginInitialise)) { // The DriverActionComplete state variable is initialised to false @@ -78,7 +78,7 @@ void ClientAPIForMathPluginManagement::ProcessNewSwitch(ISwitchVectorProperty *S bool ClientAPIForMathPluginManagement::SelectMathPlugin(const std::string &MathPluginName) { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pPlugins = MathPlugins->getSwitch(); @@ -107,7 +107,7 @@ bool ClientAPIForMathPluginManagement::SelectMathPlugin(const std::string &MathP bool ClientAPIForMathPluginManagement::ReInitialiseMathPlugin() { - // Wait for driver to initialise if neccessary + // Wait for driver to initialise if necessary WaitForDriverCompletion(); auto pPluginInitialise = PluginInitialise->getSwitch(); diff --git a/libs/alignment/ClientAPIForMathPluginManagement.h b/libs/alignment/ClientAPIForMathPluginManagement.h index 482b300c72..9e0b6a2f9b 100644 --- a/libs/alignment/ClientAPIForMathPluginManagement.h +++ b/libs/alignment/ClientAPIForMathPluginManagement.h @@ -41,7 +41,7 @@ class ClientAPIForMathPluginManagement */ bool EnumerateMathPlugins(MathPluginsList &AvailableMathPlugins); - /// \brief Intialise the API + /// \brief Initialise the API /// \param[in] BaseClient Pointer to the INDI:BaseClient class void Initialise(INDI::BaseClient *BaseClient); diff --git a/libs/alignment/Common.h b/libs/alignment/Common.h index 15ab778676..9a193f3947 100644 --- a/libs/alignment/Common.h +++ b/libs/alignment/Common.h @@ -25,7 +25,7 @@ namespace AlignmentSubsystem { /** \enum MountAlignment \brief Describe the alignment of a telescope axis. This is normally used to differentiate between - equatorial mounts in differnet hemispheres and altaz or dobsonian mounts. + equatorial mounts in different hemispheres and altaz or dobsonian mounts. */ typedef enum MountAlignment { ZENITH, NORTH_CELESTIAL_POLE, SOUTH_CELESTIAL_POLE } MountAlignment_t; @@ -59,7 +59,7 @@ enum AlignmentPointSetEnum /*! * \struct TelescopeDirectionVector - * \brief Holds a nomalised direction vector (direction cosines) + * \brief Holds a normalised direction vector (direction cosines) * * The x y,z fields of this class should normally represent a normalised (unit length) * vector in a right handed rectangular coordinate space. However, for convenience a number diff --git a/libs/alignment/InMemoryDatabase.h b/libs/alignment/InMemoryDatabase.h index ddd3025e97..953ad7f5d1 100644 --- a/libs/alignment/InMemoryDatabase.h +++ b/libs/alignment/InMemoryDatabase.h @@ -52,7 +52,7 @@ class InMemoryDatabase } /// \brief Get the database reference position - /// \param[in] Position A pointer to a IGeographicCoordinates object to retunr the current position in + /// \param[in] Position A pointer to a IGeographicCoordinates object to return the current position in /// \return True if successful bool GetDatabaseReferencePosition(IGeographicCoordinates &Position); diff --git a/libs/alignment/MapPropertiesToInMemoryDatabase.h b/libs/alignment/MapPropertiesToInMemoryDatabase.h index 74f9b161f9..6f1eec8715 100644 --- a/libs/alignment/MapPropertiesToInMemoryDatabase.h +++ b/libs/alignment/MapPropertiesToInMemoryDatabase.h @@ -59,7 +59,7 @@ namespace AlignmentSubsystem * - READ INCREMENT\n * Increment the pointer before reading the entry. * - LOAD DATABASE\n - * Load the databse from local storage. + * Load the database from local storage. * - SAVE DATABASE\n * Save the database to local storage. * - ALIGNMENT_POINTSET_COMMIT\n diff --git a/libs/alignment/MathPlugin.h b/libs/alignment/MathPlugin.h index fc5076a552..35b1e000ce 100644 --- a/libs/alignment/MathPlugin.h +++ b/libs/alignment/MathPlugin.h @@ -39,7 +39,7 @@ class MathPlugin virtual ~MathPlugin() {} // Public methods - /// \brief Get the approximate alognment of the mount + /// \brief Get the approximate alignment of the mount /// \return the approximate alignment virtual MountAlignment_t GetApproximateMountAlignment() { @@ -50,7 +50,7 @@ class MathPlugin /// \return True if successful virtual bool Initialise(InMemoryDatabase *pInMemoryDatabase); - /// \brief Set the approximate alognment of the mount + /// \brief Set the approximate alignment of the mount /// \param[in] ApproximateAlignment - the approximate alignment of the mount virtual void SetApproximateMountAlignment(MountAlignment_t ApproximateAlignment) { diff --git a/libs/alignment/NearestMathPlugin.cpp b/libs/alignment/NearestMathPlugin.cpp index 0f101e060a..b4c2886d49 100644 --- a/libs/alignment/NearestMathPlugin.cpp +++ b/libs/alignment/NearestMathPlugin.cpp @@ -87,7 +87,7 @@ bool NearestMathPlugin::Initialise(InMemoryDatabase *pInMemoryDatabase) // JM: We iterate over all the sync point and compute the celestial and telescope horizontal coordinates // Since these are used to sort the nearest alignment points to the current target. The offsets of the - // nearest point celestial coordintes are then applied to the current target to correct for its position. + // nearest point celestial coordinates are then applied to the current target to correct for its position. // No complex transformations used. for (auto &oneSyncPoint : SyncPoints) { diff --git a/libs/alignment/SVDMathPlugin.cpp b/libs/alignment/SVDMathPlugin.cpp index 72feabe15c..f96976b094 100644 --- a/libs/alignment/SVDMathPlugin.cpp +++ b/libs/alignment/SVDMathPlugin.cpp @@ -72,7 +72,7 @@ void SVDMathPlugin::CalculateTransformMatrices(const TelescopeDirectionVector &A gsl_matrix *pIntermediateMatrix1 = gsl_matrix_alloc(3, 3); MatrixMatrixMultiply(pBetaMatrix, pAlphaMatrix, pIntermediateMatrix1); - // 3. Compute the singular value decomoposition of the intermediate matrix + // 3. Compute the singular value decomposition of the intermediate matrix gsl_matrix *pV = gsl_matrix_alloc(3, 3); gsl_vector *pS = gsl_vector_alloc(3); gsl_vector *pWork = gsl_vector_alloc(3); diff --git a/libs/alignment/SVDMathPlugin.h b/libs/alignment/SVDMathPlugin.h index c298e52887..bc9a56299a 100644 --- a/libs/alignment/SVDMathPlugin.h +++ b/libs/alignment/SVDMathPlugin.h @@ -20,7 +20,7 @@ namespace AlignmentSubsystem class SVDMathPlugin : public BasicMathPlugin { private: - /// \brief Calculate tranformation matrices from the supplied vectors + /// \brief Calculate transformation matrices from the supplied vectors /// \param[in] Alpha1 Pointer to the first coordinate in the alpha reference frame /// \param[in] Alpha2 Pointer to the second coordinate in the alpha reference frame /// \param[in] Alpha3 Pointer to the third coordinate in the alpha reference frame diff --git a/libs/alignment/TelescopeDirectionVectorSupportFunctions.h b/libs/alignment/TelescopeDirectionVectorSupportFunctions.h index 7a7652739c..40251dfe8d 100644 --- a/libs/alignment/TelescopeDirectionVectorSupportFunctions.h +++ b/libs/alignment/TelescopeDirectionVectorSupportFunctions.h @@ -19,7 +19,7 @@ namespace AlignmentSubsystem /*! \class TelescopeDirectionVectorSupportFunctions * \brief These functions are used to convert different coordinate systems to and from the * telescope direction vectors (normalised vector/direction cosines) used for telescope coordinates in the - * alignment susbsystem. + * alignment subsystem. */ class TelescopeDirectionVectorSupportFunctions { diff --git a/libs/alignment/alignment_white_paper.md b/libs/alignment/alignment_white_paper.md index 190867a9ad..25387fe583 100644 --- a/libs/alignment/alignment_white_paper.md +++ b/libs/alignment/alignment_white_paper.md @@ -418,7 +418,7 @@ The final step is to add coordinate conversion to ReadScopeStatus, TimerHit (for { if (AzimuthOffsetMicrosteps < MICROSTEPS_PER_REVOLUTION / 2.0) { - // Foward + // Forward AxisDirectionRA = FORWARD; AxisSlewRateRA = AzimuthOffsetMicrosteps; } @@ -434,7 +434,7 @@ The final step is to add coordinate conversion to ReadScopeStatus, TimerHit (for AzimuthOffsetMicrosteps = abs(AzimuthOffsetMicrosteps); if (AzimuthOffsetMicrosteps < MICROSTEPS_PER_REVOLUTION / 2.0) { - // Foward + // Forward AxisDirectionRA = REVERSE; AxisSlewRateRA = AzimuthOffsetMicrosteps; } @@ -615,7 +615,7 @@ The Alignment Subsystem provides two API classes for use in clients. These are C class LoaderClient : public INDI::BaseClient, INDI::AlignmentSubsystem::AlignmentSubsystemForClients -Somewhere in the initialisation of your client make a call to the Initalise method of the AlignmentSubsystemForClients class for example: +Somewhere in the initialisation of your client make a call to the Initialise method of the AlignmentSubsystemForClients class for example: void LoaderClient::Initialise(int argc, char* argv[]) { @@ -643,7 +643,7 @@ Somewhere in the initialisation of your client make a call to the Initalise meth setBLOBMode(B_ALSO, DeviceName.c_str(), NULL); } -To hook the Alignment Subsystem into the clients property handling you must ensure that the following virtual functions are overriden. +To hook the Alignment Subsystem into the clients property handling you must ensure that the following virtual functions are overridden. virtual void newBLOB(IBLOB *bp); virtual void newDevice(INDI::BaseDevice *dp); diff --git a/libs/dsp/dsp.h b/libs/dsp/dsp.h index bc8c98c8c4..2854dc29d6 100644 --- a/libs/dsp/dsp.h +++ b/libs/dsp/dsp.h @@ -58,8 +58,8 @@ extern "C" { * The DSP API is a collection of essential routines used in astronomy signal processing
* * The DSP API is used for processing monodimensional or multidimensional buffers,
-* generating, tranforming, stack, processing buffers, aligning, convoluting arrays,
-* converting array element types, generate statistics, extract informations from buffers, convolute or
+* generating, transforming, stack, processing buffers, aligning, convoluting arrays,
+* converting array element types, generate statistics, extract information from buffers, convolute or
* cross-correlate different single or multi dimensional streams, rotate, scale, crop images.
* * \author Ilia Platone @@ -280,7 +280,7 @@ typedef struct dsp_triangle_t } dsp_triangle; /** -* \brief Alignment informations needed +* \brief Alignment information needed */ typedef struct dsp_align_info_t { @@ -366,7 +366,7 @@ typedef union dsp_location_t typedef void *(*dsp_func_t) (void *, ...); /** -* \brief Contains a set of informations and data relative to a buffer and how to use it +* \brief Contains a set of information and data relative to a buffer and how to use it * \sa dsp_stream_new * \sa dsp_stream_add_dim * \sa dsp_stream_del_dim @@ -469,7 +469,7 @@ DLL_EXPORT void dsp_fourier_idft(dsp_stream_p stream); DLL_EXPORT void dsp_fourier_2dsp(dsp_stream_p stream); /** -* \brief Obtain the complex fourier tranform from the current magnitude and phase buffers +* \brief Obtain the complex fourier transform from the current magnitude and phase buffers * \param stream the inout stream. */ DLL_EXPORT void dsp_fourier_2complex_t(dsp_stream_p stream); @@ -774,7 +774,7 @@ DLL_EXPORT void dsp_convolution_correlation(dsp_stream_p stream, dsp_stream_p ma * \brief Histogram of the inut stream * \param stream the stream on which execute * \param size the length of the median. -* \return the output stream if successfull elaboration. NULL if an +* \return the output stream if successful elaboration. NULL if an * error is encountered. */ DLL_EXPORT double* dsp_stats_histogram(dsp_stream_p stream, int size); @@ -1532,7 +1532,7 @@ DLL_EXPORT dsp_t* dsp_file_composite_2_bayer(dsp_stream_p *src, int red, int wid DLL_EXPORT void dsp_file_write_fits_bayer(const char* filename, int components, int bpp, dsp_stream_p* stream); /** -* \brief Convert a bayer pattern dsp_t array into a contiguos component array +* \brief Convert a bayer pattern dsp_t array into a contiguous component array * \param src the input buffer * \param red the location of the red pixel within the bayer pattern * \param width the picture width diff --git a/libs/dsp/fits.h b/libs/dsp/fits.h index a5108da671..386e01f290 100644 --- a/libs/dsp/fits.h +++ b/libs/dsp/fits.h @@ -243,7 +243,7 @@ DLL_EXPORT long dsp_fits_alloc_fits_rows(fitsfile *fptr, unsigned long num_rows) * \param typecode The element type size * \param num_elements The total field size in elements, this should take into account the width and repeat multipliers * \param rown The row number where the field is located -* \return non-zero if any error occured +* \return non-zero if any error occurred * \sa dsp_fits_create_fits */ DLL_EXPORT int dsp_fits_fill_fits_col(fitsfile *fptr, char* name, unsigned char *buf, int typecode, long num_elements, @@ -254,7 +254,7 @@ DLL_EXPORT int dsp_fits_fill_fits_col(fitsfile *fptr, char* name, unsigned char * \param fptr The fits file pointer created by dsp_fits_create_fits * \param name The name of the column * \param format This field should indicate the element size, width of each element and repetition eventually -* \return non-zero if any error occured +* \return non-zero if any error occurred */ DLL_EXPORT int dsp_fits_append_fits_col(fitsfile *fptr, char* name, char* format); @@ -278,7 +278,7 @@ DLL_EXPORT size_t dsp_fits_get_element_size(int typecode); * \param typecode This function will return the typecode to this variable * \param width This function will return the width to this variable * \param repeat This function will return the repeatition count to this variable -* \return non-zero if any error occured +* \return non-zero if any error occurred */ DLL_EXPORT int dsp_fits_read_typecode(char* typestr, int *typecode, long *width, long *repeat); @@ -288,7 +288,7 @@ DLL_EXPORT int dsp_fits_read_typecode(char* typestr, int *typecode, long *width, * \param column The column name of the selected field * \param rown The row position of the field * \param retval A preallocated buffer where the field value will be stored into -* \return non-zero if any error occured +* \return non-zero if any error occurred */ DLL_EXPORT int dsp_fits_get_value(fitsfile *fptr, char* column, long rown, void **retval); @@ -316,14 +316,14 @@ DLL_EXPORT fitsfile* dsp_fits_create_fits(size_t *size, void **buf); * \param columns An array of dsp_fits_column structs * \param ncols The dsp_fits_column array length * \param tablename The extension table name -* \return non-zero if any error occured +* \return non-zero if any error occurred */ DLL_EXPORT int dsp_fits_add_table(fitsfile* fptr, dsp_fits_column *columns, int ncols, const char* tablename); /** * \brief Close a fits file pointer * \param fptr The fits file pointer created by dsp_fits_create_fits -* \return non-zero if any error occured +* \return non-zero if any error occurred */ DLL_EXPORT int dsp_fits_close_fits(fitsfile *fptr); /**\}*/ diff --git a/libs/dsp/sdfits.h b/libs/dsp/sdfits.h index c76214c9ec..ca78485f88 100644 --- a/libs/dsp/sdfits.h +++ b/libs/dsp/sdfits.h @@ -194,8 +194,8 @@ extern "C" { #define SDFITS_COLUMN_WINDDIRE (dsp_fits_column){"WINDDIRE", EXTFITS_ELEMENT_DOUBLE.typestr, EXTFITS_MEASURE_UNIT_DEGREE, "", "Degrees West of North", (char*[]){""}} ///Main-beam efficiency #define SDFITS_COLUMN_BEAMEFF (dsp_fits_column){"BEAMEFF", EXTFITS_ELEMENT_DOUBLE.typestr, EXTFITS_MEASURE_UNIT_PERCENT, "", "Main-beam efficiency", (char*[]){""}} -///Antenna Aperature Efficiency -#define SDFITS_COLUMN_APEREFF (dsp_fits_column){"APEREFF", EXTFITS_ELEMENT_DOUBLE.typestr, EXTFITS_MEASURE_UNIT_PERCENT, "", "Antenna Aperature Efficiency", (char*[]){""}} +///Antenna Aperture Efficiency +#define SDFITS_COLUMN_APEREFF (dsp_fits_column){"APEREFF", EXTFITS_ELEMENT_DOUBLE.typestr, EXTFITS_MEASURE_UNIT_PERCENT, "", "Antenna Aperture Efficiency", (char*[]){""}} ///Rear spillover #define SDFITS_COLUMN_ETAL (dsp_fits_column){"ETAL", EXTFITS_ELEMENT_DOUBLE.typestr, "", "", "Rear spillover", (char*[]){""}} ///Accounts for forward loss diff --git a/libs/fpack/fpackutil.c b/libs/fpack/fpackutil.c index 98ba89c4ee..f84cf31d89 100644 --- a/libs/fpack/fpackutil.c +++ b/libs/fpack/fpackutil.c @@ -398,7 +398,7 @@ int fp_preflight (int argc, char *argv[], int unpack, fpstate *fpptr) /* check that input file exists */ if (infits[0] != '-') { /* if not reading from stdin stream */ if (fp_access (infits) != 0) { /* if not, then check if */ - strcat(infits, ".fz"); /* a .fz version exsits */ + strcat(infits, ".fz"); /* a .fz version exists */ if (fp_access (infits) != 0) { namelen = strlen(infits); infits[namelen - 3] = '\0'; /* remove the .fz suffix */ @@ -511,7 +511,7 @@ int fp_preflight (int argc, char *argv[], int unpack, fpstate *fpptr) fp_msg ("Error: input file name too long:\n "); fp_msg (infits); fp_msg ("\n "); fp_noop (); exit (-1); } - strcat(infits, ".gz"); /* a gzipped version exsits */ + strcat(infits, ".gz"); /* a gzipped version exists */ if (fp_access (infits) != 0) { namelen = strlen(infits); infits[namelen - 3] = '\0'; /* remove the .gz suffix */ @@ -632,7 +632,7 @@ int fp_loop (int argc, char *argv[], int unpack, char *output_filename, fpstate /* find input file */ if (infits[0] != '-') { /* if not reading from stdin stream */ if (fp_access (infits) != 0) { /* if not, then */ - strcat(infits, ".fz"); /* a .fz version must exsit */ + strcat(infits, ".fz"); /* a .fz version must exist */ } } diff --git a/libs/hid/hid_libusb.c b/libs/hid/hid_libusb.c index bf54c69a7d..2ee85e8f92 100644 --- a/libs/hid/hid_libusb.c +++ b/libs/hid/hid_libusb.c @@ -152,7 +152,7 @@ static void free_hid_device(hid_device *dev) } #if 0 -//TODO: Implement this funciton on hidapi/libusb.. +//TODO: Implement this function on hidapi/libusb.. static void register_error(hid_device * device, const char * op) { @@ -770,7 +770,7 @@ static void *read_thread(void *param) /* Now that the read thread is stopping, Wake any threads which are waiting on data (in hid_read_timeout()). Do this under a mutex to make sure that a thread which is about to go to sleep waiting on - the condition acutally will go to sleep before the condition is + the condition actually will go to sleep before the condition is signaled. */ pthread_mutex_lock(&dev->mutex); pthread_cond_broadcast(&dev->condition); @@ -885,7 +885,7 @@ hid_device *HID_API_EXPORT hid_open_path(const char *path) int is_output = (ep->bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK) == LIBUSB_ENDPOINT_OUT; int is_input = (ep->bEndpointAddress & LIBUSB_ENDPOINT_DIR_MASK) == LIBUSB_ENDPOINT_IN; - /* Decide whether to use it for intput or output. */ + /* Decide whether to use it for input or output. */ if (dev->input_endpoint == 0 && is_interrupt && is_input) { /* Use this endpoint for INPUT */ @@ -941,7 +941,7 @@ int HID_API_EXPORT hid_write(hid_device *dev, const unsigned char *data, size_t if (dev->output_endpoint <= 0) { - /* No interrput out endpoint. Use the Control Endpoint */ + /* No interrupt out endpoint. Use the Control Endpoint */ res = libusb_control_transfer(dev->device_handle, LIBUSB_REQUEST_TYPE_CLASS | LIBUSB_RECIPIENT_INTERFACE | LIBUSB_ENDPOINT_OUT, 0x09 /*HID Set_Report*/, (2 /*HID output*/ << 8) | report_number, dev->interface, diff --git a/libs/hid/hid_mac.c b/libs/hid/hid_mac.c index d30a44bde3..e752334ce1 100644 --- a/libs/hid/hid_mac.c +++ b/libs/hid/hid_mac.c @@ -671,7 +671,7 @@ static void *read_thread(void *param) /* Now that the read thread is stopping, Wake any threads which are waiting on data (in hid_read_timeout()). Do this under a mutex to make sure that a thread which is about to go to sleep waiting on - the condition acutally will go to sleep before the condition is + the condition actually will go to sleep before the condition is signaled. */ pthread_mutex_lock(&dev->mutex); pthread_cond_broadcast(&dev->condition); @@ -829,7 +829,7 @@ static int cond_wait(const hid_device *dev, pthread_cond_t *cond, pthread_mutex_ return res; /* A res of 0 means we may have been signaled or it may - be a spurious wakeup. Check to see that there's acutally + be a spurious wakeup. Check to see that there's actually data in the queue before returning, and if not, go back to sleep. See the pthread_cond_timedwait() man page for details. */ @@ -851,7 +851,7 @@ static int cond_timedwait(const hid_device *dev, pthread_cond_t *cond, pthread_m return res; /* A res of 0 means we may have been signaled or it may - be a spurious wakeup. Check to see that there's acutally + be a spurious wakeup. Check to see that there's actually data in the queue before returning, and if not, go back to sleep. See the pthread_cond_timedwait() man page for details. */ diff --git a/libs/hid/hid_win.c b/libs/hid/hid_win.c index 25fa6a466f..0d214444c5 100644 --- a/libs/hid/hid_win.c +++ b/libs/hid/hid_win.c @@ -154,7 +154,7 @@ static hid_device *new_hid_device() dev->read_pending = FALSE; dev->read_buf = NULL; memset(&dev->ol, 0, sizeof(dev->ol)); - dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*inital state f=nonsignaled*/, NULL); + dev->ol.hEvent = CreateEvent(NULL, FALSE, FALSE /*initial state f=nonsignaled*/, NULL); return dev; } diff --git a/libs/hid/hidtest.cpp b/libs/hid/hidtest.cpp index 4b2b6fbe35..fe110329aa 100644 --- a/libs/hid/hidtest.cpp +++ b/libs/hid/hidtest.cpp @@ -112,7 +112,7 @@ int main(int argc, char* argv[]) // Set the hid_read() function to be non-blocking. hid_set_nonblocking(handle, 1); - // Try to read from the device. There shoud be no + // Try to read from the device. There should be no // data here, but execution should not block. res = hid_read(handle, buf, 17); diff --git a/libs/indiabstractclient/abstractbaseclient.cpp b/libs/indiabstractclient/abstractbaseclient.cpp index f8699a7b0d..004c65cef2 100644 --- a/libs/indiabstractclient/abstractbaseclient.cpp +++ b/libs/indiabstractclient/abstractbaseclient.cpp @@ -32,7 +32,7 @@ #if defined(_MSC_VER) #define snprintf _snprintf #pragma warning(push) -///@todo Introduce plattform indipendent safe functions as macros to fix this +///@todo Introduce platform independent safe functions as macros to fix this #pragma warning(disable : 4996) #endif diff --git a/libs/indiabstractclient/abstractbaseclient.h b/libs/indiabstractclient/abstractbaseclient.h index 3f03ed1fe7..1ce8a72a73 100644 --- a/libs/indiabstractclient/abstractbaseclient.h +++ b/libs/indiabstractclient/abstractbaseclient.h @@ -58,7 +58,7 @@ class AbstractBaseClient : public INDI::BaseMediator public: /** @brief Connect to INDI server. * @returns True if the connection is successful, false otherwise. - * @note This function blocks until connection is either successull or unsuccessful. + * @note This function blocks until connection is either successfull or unsuccessful. */ virtual bool connectServer() = 0; diff --git a/libs/indibase/connectionplugins/connectioninterface.h b/libs/indibase/connectionplugins/connectioninterface.h index 31bac80a5f..27f0112609 100644 --- a/libs/indibase/connectionplugins/connectioninterface.h +++ b/libs/indibase/connectionplugins/connectioninterface.h @@ -115,7 +115,7 @@ class Interface virtual bool saveConfigItems(FILE *fp); /** - * @brief registerHandshake Register a handshake function to be called once the intial connection to the device is established. + * @brief registerHandshake Register a handshake function to be called once the initial connection to the device is established. * @param callback Handshake function callback * @see INDI::Telescope */ diff --git a/libs/indibase/connectionplugins/connectiontcp.h b/libs/indibase/connectionplugins/connectiontcp.h index ad4e7d08c1..321e2d7525 100644 --- a/libs/indibase/connectionplugins/connectiontcp.h +++ b/libs/indibase/connectionplugins/connectiontcp.h @@ -30,7 +30,7 @@ namespace Connection { /** * @brief The TCP class manages connection with devices over the network via TCP/IP. - * Upon successfull connection, reads & writes from and to the device are performed via the returned file descriptor + * Upon successful connection, reads & writes from and to the device are performed via the returned file descriptor * using standard UNIX read/write functions. */ diff --git a/libs/indibase/connectionplugins/ttybase.cpp b/libs/indibase/connectionplugins/ttybase.cpp index b57ceadfc4..e6247782bd 100644 --- a/libs/indibase/connectionplugins/ttybase.cpp +++ b/libs/indibase/connectionplugins/ttybase.cpp @@ -66,7 +66,7 @@ #if defined(_MSC_VER) #define snprintf _snprintf #pragma warning(push) -///@todo Introduce plattform indipendent safe functions as macros to fix this +///@todo Introduce platform independent safe functions as macros to fix this #pragma warning(disable : 4996) #endif diff --git a/libs/indibase/connectionplugins/ttybase.h b/libs/indibase/connectionplugins/ttybase.h index 654fee8e21..28fe36a6fb 100644 --- a/libs/indibase/connectionplugins/ttybase.h +++ b/libs/indibase/connectionplugins/ttybase.h @@ -70,7 +70,7 @@ class TTYBase /** \brief read buffer from terminal with a delimiter \param fd file descriptor - \param buf pointer to store data. Must be initilized and big enough to hold data. + \param buf pointer to store data. Must be initialized and big enough to hold data. \param stop_char if the function encounters \e stop_char then it stops reading and returns the buffer. \param nsize size of buf. If stop character is not encountered before nsize, the function aborts. \param timeout number of seconds to wait for terminal before a timeout error is issued. diff --git a/libs/indibase/defaultdevice.cpp b/libs/indibase/defaultdevice.cpp index d4bedea041..6b723e0d09 100644 --- a/libs/indibase/defaultdevice.cpp +++ b/libs/indibase/defaultdevice.cpp @@ -451,7 +451,7 @@ bool DefaultDevice::loadDefaultConfig() if (pResult) LOG_INFO("Default configuration loaded."); else - LOGF_INFO("Error loading default configuraiton. %s", errmsg); + LOGF_INFO("Error loading default configuration. %s", errmsg); return pResult; } @@ -806,7 +806,7 @@ int DefaultDevice::SetTimer(uint32_t ms) } // Remove main timer. ID is not used. -// Kept for backward compatiblity +// Kept for backward compatibility void DefaultDevice::RemoveTimer(int id) { INDI_UNUSED(id); @@ -816,7 +816,7 @@ void DefaultDevice::RemoveTimer(int id) } // This is just a placeholder -// This function should be overriden by child classes if they use timers +// This function should be overridden by child classes if they use timers // So we should never get here void DefaultDevice::TimerHit() { diff --git a/libs/indibase/defaultdevice.h b/libs/indibase/defaultdevice.h index 753eca83df..138f3cb6cf 100644 --- a/libs/indibase/defaultdevice.h +++ b/libs/indibase/defaultdevice.h @@ -204,7 +204,7 @@ class DefaultDevice : public ParentDevice * @brief deleteProperty Delete a property and unregister it. It will also be deleted from all clients. * @param property Property to be deleted. * @return True if successful, false otherwise. - * @note This is a convience function that internally calls deleteProperty with the property name. + * @note This is a convenience function that internally calls deleteProperty with the property name. */ bool deleteProperty(INDI::Property &property); @@ -316,7 +316,7 @@ class DefaultDevice : public ParentDevice * You may send an ORed list of DeviceInterface values. * @param value ORed list of DeviceInterface values. * @warning This only updates the internal driver interface property and does not send it to the - * client. To synchronize the client, use syncDriverInfo funciton. + * client. To synchronize the client, use syncDriverInfo function. */ void setDriverInterface(uint16_t value); @@ -329,7 +329,7 @@ class DefaultDevice : public ParentDevice protected: /** - * @brief setDynamicPropertiesBehavior controls handling of dynamic properties. Dyanmic properties + * @brief setDynamicPropertiesBehavior controls handling of dynamic properties. Dynamic properties * are those generated from an external skeleton XML file. By default all properties, including * dynamic properties, are defined to the client in ISGetProperties(). Furthermore, when * űdeleteProperty(properyName) is called, the dynamic property is deleted by default, and can only @@ -451,8 +451,8 @@ class DefaultDevice : public ParentDevice bool isSimulation() const; /** - * \brief Initilize properties initial state and value. The child class must implement this function. - * \return True if initilization is successful, false otherwise. + * \brief Initialize properties initial state and value. The child class must implement this function. + * \return True if initialization is successful, false otherwise. */ virtual bool initProperties(); diff --git a/libs/indibase/indiccd.cpp b/libs/indibase/indiccd.cpp index 6e837b1636..83b3e073a4 100644 --- a/libs/indibase/indiccd.cpp +++ b/libs/indibase/indiccd.cpp @@ -991,7 +991,7 @@ bool CCD::ISNewText(const char * dev, const char * name, char * texts[], char * else { FITSHeaderTP.setState(IPS_OK); - // Specical keyword + // Special keyword if (name == "INDI_CLEAR") { m_CustomFITSKeywords.clear(); diff --git a/libs/indibase/indiccd.h b/libs/indibase/indiccd.h index 56dc86c721..a257d8be42 100644 --- a/libs/indibase/indiccd.h +++ b/libs/indibase/indiccd.h @@ -91,7 +91,7 @@ class XISFWrapper; * It requires the client to explicitly support websockets. It is not recommended to use this * approach unless for the most demanding and FPS sensitive tasks. * - * INDI::CCD and INDI::StreamManager both upload frames asynchrounously in a worker thread. + * INDI::CCD and INDI::StreamManager both upload frames asynchronously in a worker thread. * The CCD Buffer data is protected by the ccdBufferLock mutex. When reading the camera data * and writing to the buffer, it must be first locked by the mutex. After the write is complete * release the lock. For example: @@ -103,7 +103,7 @@ class XISFWrapper; * ExposureComplete(); * \endcode * - * Similiary, before calling Streamer->newFrame, the buffer needs to be protected in a similiar fashion using + * Similarly, before calling Streamer->newFrame, the buffer needs to be protected in a similar fashion using * the same ccdBufferLock mutex. * * \example CCD Simulator @@ -305,7 +305,7 @@ class CCD : public DefaultDevice, GuiderInterface virtual bool StartExposure(float duration); /** - * \brief Uploads target Chip exposed buffer as FITS to the client. Dervied classes should class + * \brief Uploads target Chip exposed buffer as FITS to the client. Derived classes should class * this function when an exposure is complete. * @param targetChip chip that contains upload image data * \note This function is not implemented in CCD, it must be implemented in the child class @@ -414,7 +414,7 @@ class CCD : public DefaultDevice, GuiderInterface virtual bool UpdateGuiderFrameType(CCDChip::CCD_FRAME fType); /** - * \brief Setup CCD paramters for primary CCD. Child classes call this function to update + * \brief Setup CCD parameters for primary CCD. Child classes call this function to update * CCD parameters * \param x Frame X coordinates in pixels. * \param y Frame Y coordinates in pixels. @@ -425,7 +425,7 @@ class CCD : public DefaultDevice, GuiderInterface virtual void SetCCDParams(int x, int y, int bpp, float xf, float yf); /** - * \brief Setup CCD paramters for guide head CCD. Child classes call this function to update + * \brief Setup CCD parameters for guide head CCD. Child classes call this function to update * CCD parameters * \param x Frame X coordinates in pixels. * \param y Frame Y coordinates in pixels. diff --git a/libs/indibase/indiccdchip.h b/libs/indibase/indiccdchip.h index 13cd248dce..6f8e199fc7 100644 --- a/libs/indibase/indiccdchip.h +++ b/libs/indibase/indiccdchip.h @@ -304,7 +304,7 @@ class CCDChip /** * @brief setPixelSize Set CCD Chip pixel size - * @param x Horziontal pixel size in microns. + * @param x Horizontal pixel size in microns. * @param y Vertical pixel size in microns. */ void setPixelSize(double x, double y); @@ -380,7 +380,7 @@ class CCDChip void setNAxis(int value); /** - * @brief setImageExtension Set image exntension + * @brief setImageExtension Set image extension * @param ext extension (fits, jpeg, raw..etc) */ void setImageExtension(const char *ext); diff --git a/libs/indibase/indicontroller.h b/libs/indibase/indicontroller.h index 1b177edf78..1326a7dff0 100644 --- a/libs/indibase/indicontroller.h +++ b/libs/indibase/indicontroller.h @@ -47,7 +47,7 @@ namespace INDI * ISNewXXX functions from the same standard functions in your driver. * * The class communicates with INDI joystick driver which in turn enumerates the game pad and provides - * three types of constrcuts: + * three types of constructs: *