-
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 test_sendtritium_macro_rewrite
- Loading branch information
Showing
68 changed files
with
3,387 additions
and
196 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,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
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
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
Oops, something went wrong.