TeensyNanoExoCode
Loading...
Searching...
No Matches
Exo.h
Go to the documentation of this file.
1
11#ifndef Exo_h
12#define Exo_h
13
14// Arduino compiles everything in the src folder even if not included so it causes and error for the nano if this is not included.
15#if defined(ARDUINO_TEENSY36) || defined(ARDUINO_TEENSY41)
16
17#include "Arduino.h"
18
19#include "Leg.h"
20#include <stdint.h>
21#include "ParseIni.h"
22#include "Board.h"
23#include "Utilities.h"
24#include "SyncLed.h"
25#include "StatusLed.h"
26#include "StatusDefs.h"
27#include "Config.h"
28
29class Exo
30{
31 public:
32 Exo(ExoData* exo_data); // constructor: uses initializer list for the Leg objects.
33
40 bool run();
41
42 ExoData *data;
43 Leg left_leg;
44 Leg right_leg;
46 #ifdef USE_SPEED_CHECK
47 utils::SpeedCheck speed_check;
48 #endif
49
50 SyncLed sync_led;
51 StatusLed status_led;
53 private:
54
55};
56#endif
57
58#endif
Declares a class used to operate a leg.
Declares the functions needed and defines mapping between the INI keys and the exo components.
Stores the different status messages for the system.
Class to set an RGB LED to different colors based on the state of the system.
Class to blink and LED in a specific pattern to syncronize the data from the microcontroler with opti...
Class to store all the data related to the exo.
Definition ExoData.h:38
Class used to check the loop speed without serial prints, by toggling a pin after initialized,...
Definition Utilities.h:203