-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into clang-format
- Loading branch information
Showing
122 changed files
with
5,889 additions
and
2,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Bug report | ||
about: Report a bug in the Controls System | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Which feature is being tested? | ||
2. Which requirements are being tested? | ||
3. Which test is used? | ||
4. What is the hardware configuration? | ||
5. What combination of inputs cause the error? | ||
6. What does the error look like? | ||
7. Does this issue already exist? | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest a new feature for Controls | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the problem this feature will solve** | ||
A clear and concise description of what the problem is. Please make sure the issue for this feature does not already exist. | ||
|
||
**Describe the proposed solution** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe possible alternatives** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Read the Docs configuration file for Sphinx projects | ||
|
||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
|
||
# Required | ||
|
||
version: 2 | ||
|
||
|
||
# Set the OS, Python version and other tools you might need | ||
|
||
build: | ||
|
||
os: ubuntu-22.04 | ||
|
||
apt_packages: | ||
- doxygen | ||
|
||
tools: | ||
|
||
python: "3.11" | ||
|
||
jobs: | ||
post_install: | ||
- make docs | ||
|
||
|
||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
|
||
sphinx: | ||
|
||
configuration: Docs/source/conf.py | ||
|
||
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs | ||
|
||
# builder: "dirhtml" | ||
|
||
# Fail on all warnings to avoid broken references | ||
|
||
# fail_on_warning: true | ||
|
||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
|
||
# formats: | ||
|
||
|
||
# - epub | ||
|
||
|
||
# Optional but recommended, declare the Python requirements required | ||
|
||
# to build your documentation | ||
|
||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
|
||
python: | ||
|
||
install: | ||
|
||
- requirements: Docs/source/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
/** | ||
* @copyright Copyright (c) 2018-2023 UT Longhorn Racing Solar | ||
* @file FaultState.h | ||
* @brief | ||
* | ||
* @defgroup FaultState | ||
* @addtogroup FaultState | ||
* @{ | ||
*/ | ||
#ifndef __FAULT_STATE_H | ||
#define __FAULT_STATE_H | ||
|
||
|
||
void EnterFaultState(void); | ||
|
||
#endif | ||
#endif | ||
|
||
|
||
/* @} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,52 @@ | ||
/* Copyright (c) 2021 UT Longhorn Racing Solar */ | ||
|
||
#ifndef __READ_TRITIUM_H | ||
#define __READ_TRITIUM_H | ||
|
||
#include "os.h" | ||
#include "common.h" | ||
#include "Tasks.h" | ||
|
||
#define CAR_STOPPED 0 | ||
|
||
/** | ||
* Motor Error States | ||
* Read messages from motor in ReadTritium and trigger appropriate error messages as needed based on bits | ||
* | ||
*/ | ||
typedef enum{ | ||
T_HARDWARE_OVER_CURRENT_ERR = (1<<0), | ||
T_SOFTWARE_OVER_CURRENT_ERR = (1<<1), | ||
T_DC_BUS_OVERVOLT_ERR = (1<<2), | ||
T_HALL_SENSOR_ERR = (1<<3), | ||
T_WATCHDOG_LAST_RESET_ERR = (1<<4), | ||
T_CONFIG_READ_ERR = (1<<5), | ||
T_UNDER_VOLTAGE_LOCKOUT_ERR = (1<<6), | ||
T_DESAT_FAULT_ERR = (1<<7), | ||
T_MOTOR_OVER_SPEED_ERR = (1<<8), | ||
T_INIT_FAIL = (1<<9), //motor controller fails to restart or initialize | ||
T_NONE = 0x00, | ||
} tritium_error_code_t; | ||
#define NUM_TRITIUM_ERRORS 9 //9 errors, and 1 entry for no error | ||
|
||
/** | ||
* @brief Returns the current error status of the tritium controller | ||
*/ | ||
tritium_error_code_t MotorController_getTritiumError(void); | ||
|
||
float Motor_RPM_Get(); | ||
float Motor_Velocity_Get(); | ||
void MotorController_Restart(); | ||
|
||
#endif | ||
/** | ||
* @copyright Copyright (c) 2018-2023 UT Longhorn Racing Solar | ||
* @file ReadTritium.h | ||
* @brief | ||
* | ||
* @defgroup ReadTritium | ||
* @addtogroup ReadTritium | ||
* @{ | ||
*/ | ||
|
||
#ifndef __READ_TRITIUM_H | ||
#define __READ_TRITIUM_H | ||
|
||
#include "os.h" | ||
#include "common.h" | ||
#include "Tasks.h" | ||
|
||
#define CAR_STOPPED 0 | ||
|
||
/** | ||
* Motor Error States | ||
* Read messages from motor in ReadTritium and trigger appropriate error messages as needed based on bits | ||
* | ||
*/ | ||
typedef enum{ | ||
T_HARDWARE_OVER_CURRENT_ERR = (1<<0), | ||
T_SOFTWARE_OVER_CURRENT_ERR = (1<<1), | ||
T_DC_BUS_OVERVOLT_ERR = (1<<2), | ||
T_HALL_SENSOR_ERR = (1<<3), | ||
T_WATCHDOG_LAST_RESET_ERR = (1<<4), | ||
T_CONFIG_READ_ERR = (1<<5), | ||
T_UNDER_VOLTAGE_LOCKOUT_ERR = (1<<6), | ||
T_DESAT_FAULT_ERR = (1<<7), | ||
T_MOTOR_OVER_SPEED_ERR = (1<<8), | ||
T_INIT_FAIL = (1<<9), //motor controller fails to restart or initialize | ||
T_NONE = 0x00, | ||
} tritium_error_code_t; | ||
#define NUM_TRITIUM_ERRORS 9 //9 errors, and 1 entry for no error | ||
|
||
/** | ||
* @brief Returns the current error status of the tritium controller | ||
*/ | ||
tritium_error_code_t MotorController_getTritiumError(void); | ||
|
||
float Motor_RPM_Get(); | ||
float Motor_Velocity_Get(); | ||
void MotorController_Restart(); | ||
|
||
#endif | ||
|
||
|
||
/* @} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.