-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs M2 #373
base: master
Are you sure you want to change the base?
Conversation
Task linked: CU-868680632 Update Documentation for M2.0 |
…thin the source code, and will be generated using Doxygen. This will allow us to keep the documentation contained within the source code, and will make it easier to keep the documentation up to date. Transition process has already started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting an error on the build of the docs:
This was tested on a fresh Ubuntu install and pull of the repo. Install script from Embedded Sharepoint was ran without any apparent errors. |
@aidenmadaffri it is telling you you need to install a theme for sphinx to display. This is the theme that is used to generate the HTML documents. You can resolve this using |
This resolves the issue, but yes it should be fixed in the install script. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very clear explanation of all the files and their functions. This will be an excellent resource to reference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few small proofreading suggestions to support all the great work already done.
@@ -83,11 +85,10 @@ uint8_t BSP_GPIO_Read_Pin(port_t port, uint16_t pinmask){ | |||
/** | |||
* @brief Writes data to a specified pin | |||
* @param port The port to write to | |||
* @param pin The pin to write to | |||
* @param pinmask Mask from stm header file that says which pin to write too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param pinmask Mask from stm header file that says which pin to write too | |
* @param pinmask Mask from stm header file that says which pin to write to | |
BSP/STM32F413/Src/BSP_UART.c
Outdated
* @param str : pointer to buffer with data to send. | ||
* @param len : size of buffer | ||
* @param usart : which usart to read from (2 or 3) | ||
* @brief Transmits data to through a specific |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @brief Transmits data to through a specific | |
* @brief Transmits data through a specific |
Docs/source/index.rst
Outdated
|
||
Overview/Hardware | ||
Overview/Software | ||
To actually build the documentation, run ``make docs``. The resulting ``build/html/index.html`` can then be viewed in any browser. When your pull request is merged into the master branch, the documentation changes should be automatically visible on this website. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're recommending the extension, then we could consider mentioning it here too
To actually build the documentation, run ``make docs``. The resulting ``build/html/index.html`` can then be viewed in any browser. When your pull request is merged into the master branch, the documentation changes should be automatically visible on this website. | |
To actually build the documentation, run ``make docs``. The resulting ``build/html/index.html`` can then be viewed in any browser or in the editor using this [VSCode extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.live-server) by navigating to the Controls/Docs/build/html directory. When your pull request is merged into the master branch, the documentation changes should be automatically visible on this website. |
Drivers/Inc/CANbus.h
Outdated
* @brief Reads a CAN message from the CAN hardware and returns it to the provided pointers | ||
* @param data where to store the received message | ||
* @param blocking Whether or not this read should be blocking | ||
* @param bus The bus to use, either be CARCAN or MOTORCAN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param bus The bus to use, either be CARCAN or MOTORCAN | |
* @param bus The bus to use, can either be CARCAN or MOTORCAN |
* @param status | ||
* @return true is fail (wrote to an input) | ||
* @return false is success (wrote to an output) | ||
* @param pin the pint to read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param pin the pint to read | |
* @param pin the pin to read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
BSP/STM32F413/Src/BSP_ADC.c
Outdated
* @brief Provides the ADC value of the channel at the specified index | ||
* @param hardwareDevice pedal enum that represents the specific device | ||
* @return Raw ADC value without conversion | ||
*/ | ||
int16_t BSP_ADC_Get_Value(ADC_t hardwareDevice) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future possible change: renaming it BSP_ADC_Get_Raw_Value. To differentiate between this function and the one that returns Millivoltage.
Apps/Inc/common.h
Outdated
@@ -1,11 +1,7 @@ | |||
/** | |||
* @copyright Copyright (c) 2018-2023 UT Longhorn Racing Solar | |||
* @file common.h | |||
* @brief |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is a brief needed here?
Apps/Inc/fifo.h
Outdated
@@ -1,11 +1,7 @@ | |||
/** | |||
* @copyright Copyright (c) 2018-2023 UT Longhorn Racing Solar | |||
* @file fifo.h | |||
* @brief |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here?
BSP/Inc/BSP_CAN.h
Outdated
* @pre The data parameter must be at least 8 bytes or hardfault may occur. | ||
* @param id : pointer to store id of the message that was received. | ||
* @param data : pointer to store data that was received. Must be 8bytes or bigger. | ||
* @return ERROR if nothing was received so ignore id and data that was received. SUCCESS indicates data was received and stored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @return ERROR if nothing was received so ignore id and data that was received. SUCCESS indicates data was received and stored. | |
* @return ERROR if nothing was received, ignore id and data that was received. SUCCESS indicates data was received and stored. |
=========== | ||
All OS functions return an error code whose value should immediately be checked by a call to ``assertOSError``. The Controls system cannot run without a properly functioning OS, so any OS error is critical and nonrecoverable. Thus, when an OS function returns an error code that is not ``OS_ERR_NONE``, the assertion will fail, and the following steps will occur: | ||
#. If in DEBUG mode, the file and line of the failed assertion will be printed | ||
#. The Array Bypass-Precharge Contactor and Motor Bypass-Precharge Contactor will open |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#. The Array Bypass-Precharge Contactor and Motor Bypass-Precharge Contactor will open | |
#. The Array Precharge-Bypass Contactor and Motor Precharge-Bypass Contactor will open |
The errors asserted by applications include | ||
|
||
* :doc:`ReadTritium <ReadTritium>`: Motor controller errors | ||
* Errors sent from the motor controller are asserted by ReadTritium. These are typically nonrecoverable, with the exception of the motor watchdog and hall sensor errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Errors sent from the motor controller are asserted by ReadTritium. These are typically nonrecoverable, with the exception of the motor watchdog and hall sensor errors. | |
* Errors sent from the motor controller are asserted by ReadTritium. These are typically nonrecoverable, with the exception of the motor watchdog and hall sensor errors. Motor watchdog and hall sensor errors attempt to recover a set number of times before entering a nonrecoverable state. |
* :doc:`ReadTritium <ReadTritium>`: Motor controller errors | ||
* Errors sent from the motor controller are asserted by ReadTritium. These are typically nonrecoverable, with the exception of the motor watchdog and hall sensor errors. | ||
* :doc:`ReadCarCAN <ReadCarCAN>`: Contactor disable conditions | ||
* These errors depend on BPS and include charge disable, contactor open, and BPS trip, as well as missed BPS messages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* These errors depend on BPS and include charge disable, contactor open, and BPS trip, as well as missed BPS messages. | |
* These errors depend on BPS and include charge disable, contactor open, and BPS trip, as well as missed BPS messages. BPS trip is nonrecoverable, and all the other errors are recoverable. All the errors have callback functions. |
* Added clang format/tidy config files, changes to the makefiles to apply them and edited the github workflow to make sure the tools are enforced * Applied clang format and tidy * Updated embedded shairpoint which has correct install script
…me like three hours)
… Initialization (only in docs)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Quality Assurance Checklist
To make reviews more efficient, please make sure the software feature meets the following standards and check everything off that meets the quality check. Once everything has been checked, the assigned reviewers will begin the review process. Edit this description to check off the list.
There are exceptions with all guidelines. As long as your decisions are justified, then you are good! Contact the reviewers or the leads about any exceptions.
Requirements
Things to Consider