ASMESDC2018
/home/swerve/Github/sdc_2018/omni_robot/Logger.h
Go to the documentation of this file.
1 
8 #ifndef LOGGER_H_
9 #define LOGGER_H_
10 
11 #include <Arduino.h>
12 
13 #define DEBUG_LOGGER_LEVEL 0 // 0 don't display debug messages, 1 to display them
14 
15 #define SUCCESS 0
16 #define MOTOR_TYPE_ERROR -1 // motor type not recognized
17 #define ENCODER_SETUP_ERROR -2 // encoder has not been setup yet
18 #define SENSOR_TYPE_ERROR -3 // sensor type not recognized
19 #define SENSOR_INT_ERROR -4 // interrupt function not provided to interruptable sensor
20 #define LED_STATE_ERROR -5 // provided LED state is not valid
21 
22 namespace logger {
23 
24  int displayError(int);
31  void displayInfo(String);
38  void displayDebug(String);
45 };
46 
47 #endif /* LOGGER_H_ */
48 
49 
void displayDebug(String)
int void displayInfo(String)
Definition: Logger.cpp:43
void displayInfo(String)
int displayError(int)
Definition: Logger.cpp:36
int displayError(int)
Definition: Logger.cpp:10
Definition: Logger.h:22