Skip to content

Commit

Permalink
merged with main
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Donahue committed Jan 21, 2024
2 parents 9e523cc + d6649ae commit 6bda5c7
Show file tree
Hide file tree
Showing 25 changed files with 2,375 additions and 2,028 deletions.
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-form.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Bug
description: For any issue related to a bug
title: '[Area] - Short Description'
labels: [bug]
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?
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: How could someone reproduce this bug?
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
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
64 changes: 64 additions & 0 deletions .github/ISSUE_TEMPLATE/epic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Epic
description: A collection of many tasks
title: '[Area] - Short Description'
labels: [epic]
body:
- type: textarea
id: overview
attributes:
label: Overview
description: Provide a brief summary of this epic
validations:
required: true
- type: textarea
id: stakeholders
attributes:
label: Stakeholders
description: Who to contact for this epic?
value: |
Product Stakeholder:
Software Stakeholder:
Reference Users:
- type: textarea
id: metrics
attributes:
label: Success Metrics
description: What are the metrics we will use to determine if this is successful?
validations:
required: true
- type: textarea
id: rollout
attributes:
label: Rollout Plan
description: How will this be released? All at once? In parts?
validations:
required: true
- type: textarea
id: scope
attributes:
label: Out of Scope
description: What is not included in this epic?
validations:
required: true
- type: textarea
id: background-context
attributes:
label: Background / Context
description: What is the context for this epic? What already exists?
validations:
required: true
- type: textarea
id: acceptance
attributes:
label: Acceptance Criteria
description: How are we evaluating the success of this epic?
validations:
required: true
- type: textarea
id: tickets
attributes:
label: Tickets
description: What tickets will be a part of this epic?
value: " - [ ] #\n - [ ] #"
validations:
required: true
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Feature Request
description: Suggest a new feature for the project
title: '[Area] - Short Description'
labels: [new feature]
body:
- type: textarea
id: current-features
attributes:
label: Current Features
description: What exists currently?
validations:
required: true
- type: textarea
id: desired-features
attributes:
label: Desired Additional Features
description: What features do you want to add?
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots (as needed)
description: Add screenshots of the current or desired state if applicable
validations:
required: false
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/other.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Other
description: For issues that don't fit the other categories
title: '[Area] - Short Description'
body:
- type: textarea
id: desired-changes
attributes:
label: Desired Changes
description: What changes do you want to make?
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots (as needed)
description: Add screenshots if applicable
validations:
required: false
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/spike.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Spike
description: For any research or investigation into a feature or our current architecture
title: '[Area] - Short Description'
labels: [spike]
body:
- type: markdown
attributes:
value: For a spike ticket, please make sure to remember to add links to the resources you are pulling information from so others who are reviewing and giving feedback can also take a look at the same information you are looking at.
- type: dropdown
id: spike-type
attributes:
label: Spike Type
description: Is this spike about the product (functional) or the implementation of the product (technical)?
multiple: true
options:
- Functional
- Technical
- type: textarea
id: goal
attributes:
label: Goal
description: What is this spike ticket looking into/trying to solve? Is this about enhancing something we currently do or looking into a new feature?
validations:
required: true
- type: textarea
id: purpose
attributes:
label: Reason for Spike
description: Why is this spike ticket necessary?
validations:
required: true
- type: textarea
id: sidenotes
attributes:
label: Additional notes
description: Add any extra comments related to the spike.
validations:
required: false
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Task
description: Create a task that a developer can complete.
title: '[Area] - Short Description'
body:
- type: textarea
id: description
attributes:
label: Description
description: Provide a brief summary of this issue
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?
validations:
required: true
- type: textarea
id: proposed-solution
attributes:
label: Proposed Solution
description: How will this solution be implemented? What will be changed or added?
validations:
required: true
36 changes: 36 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
## Changes

_Explanation of changes goes here_

## Notes

_Any other notes go here_

## Test Cases

- Case A
- Edge case
- ...

## To Do

_Any remaining things that need to get done_

- [ ] item 1
- [ ] ...

## Checklist

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
- [ ] Assign the PR to yourself
- [ ] Request reviewers & ping on Slack
- [ ] PR is linked to the ticket (fill in the closes line below)

Closes # (issue #)
2 changes: 1 addition & 1 deletion .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
if ! make; then
echo "The application has failed to build."
exit 1 # This will cause the workflow to fail
fi
fi
37 changes: 37 additions & 0 deletions Core/Inc/can_handler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#ifndef CAN_HANDLER_H
#define CAN_HANDLER_H

#include "can.h"
#include "stm32f4xx_hal.h"
#include <stdint.h>


#define NUM_INBOUND_CAN1_IDS 1
#define NUM_INBOUND_CAN2_IDS 1

extern CAN_HandleTypeDef hcan1;
extern CAN_HandleTypeDef hcan2;

extern ringbuffer_t* can1_rx_queue;
extern ringbuffer_t* can2_rx_queue;

static const uint16_t can1_id_list[NUM_INBOUND_CAN1_IDS] = {
//CANID_X,
0x0000
};

static const uint16_t can2_id_list[NUM_INBOUND_CAN2_IDS] = {
//CANID_X,
0x0000
};


void can_receive_callback(CAN_HandleTypeDef *hcan);

/* for 1st CAN bus */
int8_t get_can1_msg();

/* for 2nd CAN bus */
int8_t get_can2_msg();

#endif // CAN_HANDLER_H
1 change: 1 addition & 0 deletions Core/Inc/compute.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "datastructs.h"
#include "stateMachine.h"
#include "ringbuffer.h"

#define CURRENT_SENSOR_PIN_L A1
#define CURRENT_SENSOR_PIN_H A0
Expand Down
Loading

0 comments on commit 6bda5c7

Please sign in to comment.