Northeastern-Electric-Racing / Iroh

Our Custom FreeRTOS Application for Controlling Accumulator Charging
1 stars 0 forks source link

Talking to Shepherd #10

Closed Sabramz closed 8 months ago

Sabramz commented 9 months ago

Description

Shepherd wants to know info from "a few crucial pins that used to be on shepherd but are now on charger, and shepherd needs to know there state". This issue concerns only basic communications with Shep. Collaboration will be needed to determine what messages each system wants to send and receive. It is currently unknown what the "crucial pins" are, and what state Shepherd needs to get from it (and how the state will be represented). This issue may involve working on Shep too.

Acceptance Criteria

We can communicate information to Shepherd over CAN. Interface is scalable and modular (can easily accommodate more messages and be changed if necessary).

Proposed Solution

Talking to other people (engineer's worst nightmare). Use CAN drivers to create a system for sending messages from a queue. Will use an RTOS queue. This has been done in Cerberus. Use it as a reference, or just straight up copy it. If you need help, Scott has done it before, so this is something he can easily help you with.

Sabramz commented 8 months ago

All questions in here have been answered. This task is covered by the CAN comms with Shepherd task.