Fix Typos (NFC) (#5137)

This commit is contained in:
sciencewhiz
2023-02-26 15:06:37 -08:00
committed by GitHub
parent ce3686b80d
commit 4af84a1c12
71 changed files with 95 additions and 95 deletions

View File

@@ -69,7 +69,7 @@ void setAnalogNumChannelsToActivate(int32_t channels);
* number of active channels and the sample rate.
*
* When the number of channels changes, use the new value. Otherwise,
* return the curent value.
* return the current value.
*
* @return Value to write to the active channels field.
*/

View File

@@ -37,7 +37,7 @@ int32_t HAL_GetFPGAEncoder(HAL_FPGAEncoderHandle fpgaEncoderHandle,
/**
* Returns the period of the most recent pulse.
* Returns the period of the most recent Encoder pulse in seconds.
* This method compenstates for the decoding type.
* This method compensates for the decoding type.
*
* @deprecated Use GetRate() in favor of this method. This returns unscaled
* periods and GetRate() scales using value from SetDistancePerPulse().

View File

@@ -51,7 +51,7 @@ struct DeviceDescriptor
// Bootloader version. Will not change for the life of the product, but additional
// field upgrade features could be added in newer hardware.
char bootloaderRev[MAX_STRING_LEN];
// Manufacture Date. Could be a calender date or just the FRC season year.
// Manufacture Date. Could be a calendar date or just the FRC season year.
// Also helps troubleshooting "old ones" vs "new ones".
char manufactureDate[MAX_STRING_LEN];
// General status of the hardware. For example if the device is in bootloader

View File

@@ -79,7 +79,7 @@ extern "C" {
/**
* Signals in message Compressor_Config.
*
* Configures compressor to use digitial/analog sensors
* Configures compressor to use digital/analog sensors
*
* All signal values are as on the CAN bus.
*/

View File

@@ -40,7 +40,7 @@ extern "C" {
#endif
/**
* Initializes an object for peforming DMA transfers.
* Initializes an object for performing DMA transfers.
*
* @param[out] status Error status variable. 0 on success.
* @return the created dma handle
@@ -310,7 +310,7 @@ enum HAL_DMAReadStatus HAL_ReadDMADirect(void* dmaPointer,
* timing out
* @param[in] remainingOut the number of samples remaining in the queue
* @param[out] status Error status variable. 0 on success.
* @return the succes result of the sample read
* @return the success result of the sample read
*/
enum HAL_DMAReadStatus HAL_ReadDMA(HAL_DMAHandle handle,
HAL_DMASample* dmaSample,

View File

@@ -28,7 +28,7 @@ extern "C" {
* @param errorCode the error code
* @param isLVCode true for a LV error code, false for a standard error code
* @param details the details of the error
* @param location the file location of the errror
* @param location the file location of the error
* @param callStack the callstack of the error
* @param printMsg true to print the error message to stdout as well as to the
* DS

View File

@@ -31,7 +31,7 @@ extern "C" {
* Expected to be called internally, not by users.
*
* @param library the library path
* @return the succes state of the initialization
* @return the success state of the initialization
*/
int HAL_LoadOneExtension(const char* library);
@@ -39,7 +39,7 @@ int HAL_LoadOneExtension(const char* library);
* Loads any extra halsim libraries provided in the HALSIM_EXTENSIONS
* environment variable.
*
* @return the succes state of the initialization
* @return the success state of the initialization
*/
int HAL_LoadExtensions(void);

View File

@@ -36,7 +36,7 @@ extern "C" {
* Initializes a Power Distribution Panel.
*
* @param[in] moduleNumber the module number to initialize
* @param[in] type the type of module to intialize
* @param[in] type the type of module to initialize
* @param[in] allocationLocation the location where the allocation is occurring
* @param[out] status Error status variable. 0 on success.
* @return the created PowerDistribution

View File

@@ -47,7 +47,7 @@ extern "C" {
*
* The device name must be unique. 0 is returned if the device name already
* exists. If multiple instances of the same device are desired, recommend
* appending the instance/unique identifer in brackets to the base name,
* appending the instance/unique identifier in brackets to the base name,
* e.g. "device[1]".
*
* 0 is returned if not in simulation.
@@ -663,7 +663,7 @@ class SimDevice {
*
* The device name must be unique. Returns null if the device name
* already exists. If multiple instances of the same device are desired,
* recommend appending the instance/unique identifer in brackets to the base
* recommend appending the instance/unique identifier in brackets to the base
* name, e.g. "device[1]".
*
* If not in simulation, results in an "empty" object that evaluates to false

View File

@@ -63,8 +63,8 @@ int32_t ComputeDigitalMask(HAL_DigitalHandle handle, int32_t* status);
/**
* Unsafe digital output set function
* This function can be used to perform fast and determinstically set digital
* outputs. This function holds the DIO lock, so calling anyting other then
* This function can be used to perform fast and deterministically set digital
* outputs. This function holds the DIO lock, so calling anything other then
* functions on the Proxy object passed as a parameter can deadlock your
* program.
*

View File

@@ -19,7 +19,7 @@ namespace hal {
/**
* The UnlimitedHandleResource class is a way to track handles. This version
* allows an unlimted number of handles that are allocated sequentially. When
* allows an unlimited number of handles that are allocated sequentially. When
* possible, indices are reused to save memory usage and keep the array length
* down.
* However, automatic array management has not been implemented, but might be in