Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
ExternalSystem.h
Go to the documentation of this file.
1#ifndef RENSSELAERMOTORSPORT_EXTERNAL_SYSTEM_H
2#define RENSSELAERMOTORSPORT_EXTERNAL_SYSTEM_H
3
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7
8#include "System.h"
9#include "CommsSystem.h"
10
11typedef enum {
14 IMD
16
17typedef struct {
20 CommsSystem* comms; //What comms are we using to communicate with the external system? CAN, Ethernet, etc.
21 int (*check_heartbeat)(void* self); // Check if the controller is still alive
23
32void initExternalSystem(ExternalSystem* external, const char* name, int hz,
34
35#endif // RENSSELAERMOTORSPORT_EXTERNAL_SYSTEM_H
void initExternalSystem(ExternalSystem *external, const char *name, int hz, ExternalType type)
Definition: ExternalSystem.c:3
ExternalType
@ IMD
@ BMS
@ ESC
type
Definition: Updateable.h:17
ExternalType type
CommsSystem * comms
Definition: System.h:17