This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.

54 lines
875 B
C
Raw Normal View History

/**
* @author R<EFBFBD>mi Heredero
* @version. 0.0.0
* @date August 2023
* @file factory.h
*/
#ifndef FACTORY_H
#define FACTORY_H
#include <stdint.h>
#include <stdbool.h>
2023-08-25 14:13:51 +02:00
#include "../car.h"
#include "../can_message.h"
2023-08-31 17:52:38 +02:00
#include "../eeprom.h"
2023-08-31 20:02:41 +02:00
#include "../drive.h"
2023-09-04 15:20:54 +02:00
#include "../steering.h"
2023-09-05 20:02:25 +02:00
#include "../kartculator.h"
#include "../../board/led/led.h"
#include "../../board/button/button.h"
#include "../../middleware/alive.h"
#include "../../middleware/can_interface.h"
2023-08-30 20:22:44 +02:00
#include "../../middleware/blinker.h"
typedef struct {
LED l7_;
LED l8_;
2023-08-25 14:13:51 +02:00
ALIVE ALcontroller_;
ALIVE ALjoy_;
2023-08-31 20:02:41 +02:00
DRIVE drive_;
2023-09-04 15:20:54 +02:00
STEERING steering_;
} Factory;
void Factory_init();
void Factory_build();
void Factory_start();
//these are global getters for our objects
LED* l7();
LED* l8();
ALIVE* ALcontroller();
ALIVE* ALjoy();
2023-08-31 20:02:41 +02:00
DRIVE* drive();
2023-09-04 15:20:54 +02:00
STEERING* steering();
2023-08-25 14:13:51 +02:00
#endif