Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/feature/fan-control…
Browse files Browse the repository at this point in the history
…-system' into feature/fan-control-system
  • Loading branch information
dnakhooda committed Jan 23, 2025
2 parents 6f69a35 + 4594808 commit 4c29393
Show file tree
Hide file tree
Showing 36 changed files with 254 additions and 451 deletions.
19 changes: 3 additions & 16 deletions .github/ISSUE_TEMPLATE/bug-form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,20 @@ name: Bug
description: For any issue related to a bug
title: '[Area] - Short Description'
labels: [bug]
projects: ["Northeastern-Electric-Racing/20"]
body:
- type: textarea
id: observed-behavior
attributes:
label: Observed Behavior
description: What happened?
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: What should have happened?
description: What happened? What should of happened?
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: How could someone reproduce this bug?
description: How could someone reproduce this bug? Include versions of code or PCBs as applicable.
value: "1. \n2. \n3. "
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots (as needed)
description: Add screenshots of the bug if applicable
validations:
required: false
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
blank_issues_enabled: true
blank_issues_enabled: false
64 changes: 0 additions & 64 deletions .github/ISSUE_TEMPLATE/epic.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/feature-request.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/other.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/spike.yml

This file was deleted.

9 changes: 5 additions & 4 deletions .github/ISSUE_TEMPLATE/task.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: Task
description: Create a task that a developer can complete.
name: Feature
description: Describe a feature that a developer can add.
title: '[Area] - Short Description'
projects: ["Northeastern-Electric-Racing/20"]
body:
- type: textarea
id: description
attributes:
label: Description
description: Provide a brief summary of this issue
description: Provide a brief summary of the current shortcoming or new improvement
validations:
required: true
- type: textarea
id: acceptance-criteria
attributes:
label: Acceptance Criteria
description: What are the conditions that need to be satisified to complete this task?
description: What are the test conditions that need to be satisified to complete this task?
validations:
required: true
- type: textarea
Expand Down
1 change: 0 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ It can be helpful to check the `Checks` and `Files changed` tabs.
Please reach out to your Project Lead if anything is unclear.
Please request reviewers and ping on slack only after you've gone through this whole checklist.

- [ ] All commits are tagged with the ticket number
- [ ] No merge conflicts
- [ ] All checks passing
- [ ] Remove any non-applicable sections of this template
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ on: [push]
jobs:
run-build:
runs-on: ubuntu-latest
container:
image: ghcr.io/northeastern-electric-racing/embedded-base:main
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive

fetch-depth: 0
- name: Execute Make
run: |
if ! make; then
if ! docker compose run --rm ner-gcc-arm make -j `nproc`; then
echo "The application has failed to build."
exit 1 # This will cause the workflow to fail
fi
fi
1 change: 0 additions & 1 deletion Core/Inc/bms.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#ifndef BMS_H
#define BMS_H

Expand Down
14 changes: 0 additions & 14 deletions Core/Inc/can_handler.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
/**
* @file can_handler.h
* @author Hamza Iqbal
* @brief This CAN handler is meant to receive and properly route CAN messages
* and keep this task seperate the CAN driver. The purpose of this is
* specifically to have a better way of routing the different messages.
* @version 0.1
* @date 2023-09-22
*
* @copyright Copyright (c) 2023
*
*/

#ifndef CAN_HANDLER_H
#define CAN_HANDLER_H

#include "can.h"
#include "cmsis_os.h"
#include "dti.h"

/**
* @brief Callback to be called when a message is received on CAN line 1.
Expand Down
3 changes: 2 additions & 1 deletion Core/Inc/cerb_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
#ifndef CERB_UTILS_H
#define CERB_UTILS_H

#include <stdbool.h>

#include "cmsis_os.h"
#include "stdbool.h"
#include "timer.h"

/**
Expand Down
9 changes: 6 additions & 3 deletions Core/Inc/dti.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#define DTI_H

#include "can_handler.h"
#include <stdbool.h>
#include <stdint.h>

/* Message IDs from DTI CAN Datasheet */
#define DTI_CANID_ERPM 0x416 /* ERPM, Duty, Input Voltage */
Expand All @@ -27,7 +25,7 @@
0x496 /* Throttle signal, Brake signal, IO, Drive enable */

#define TIRE_DIAMETER 16 /* inches */
#define GEAR_RATIO 47 / 13.0 /* unitless */
#define GEAR_RATIO 43 / 13.0 /* unitless */
#define POLE_PAIRS 10 /* unitless */

typedef struct {
Expand Down Expand Up @@ -133,4 +131,9 @@ void dti_set_relative_current(int16_t relative_current);
*/
void dti_set_drive_enable(bool drive_enable);

/**
* @brief gets the current mph from the DTI
*/
uint8_t get_mph();

#endif
2 changes: 1 addition & 1 deletion Core/Inc/emrax.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define EMRAX_NOMINAL_VOLTAGE 520 /* V */
#define EMRAX_PEAK_EFFICIENCY 90 /* % */
#define EMRAX_PEAK_POWER 124 /* kW, at 5500 RPM */
#define EMRAX_PEAK_TORQUE 230 /* Nm */
#define EMRAX_PEAK_TORQUE 220 /* Nm */
#define EMRAX_CONT_TORQUE 112 /* Nm */
#define EMRAX_LIMITING_SPEED 6500 /* RPM */
#define EMRAX_KV 15.53
Expand Down
1 change: 0 additions & 1 deletion Core/Inc/fault.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef CERBERUS_FAULT_H
#define CERBERUS_FAULT_H

#include "cerberus_conf.h"
#include "cmsis_os.h"

typedef enum {
Expand Down
5 changes: 2 additions & 3 deletions Core/Inc/monitor.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#ifndef CERBERUS_MONITOR_H
#define CERBERUS_MONITOR_H

#include <stdbool.h>

#include "cmsis_os.h"
#include "mpu.h"
#include "pdu.h"
#include "stdbool.h"
#include "steeringio.h"
#include "stm32f4xx_hal.h"

/**
* @brief Get the debounced TSMS reading.
Expand Down
6 changes: 3 additions & 3 deletions Core/Inc/mpu.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef MPU_H
#define MPU_H

#include "cmsis_os2.h"
#include "stm32f4xx_hal.h"
#include <stdbool.h>
#include <stdint.h>

#include "cmsis_os.h"
#include "stm32f4xx_hal.h"

typedef struct {
I2C_HandleTypeDef *hi2c;
Expand Down
21 changes: 0 additions & 21 deletions Core/Inc/nero.h

This file was deleted.

Loading

0 comments on commit 4c29393

Please sign in to comment.