ASMESDC2018
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
/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
logger::displayDebug
void displayDebug(String)
int void displayInfo(String)
Definition:
Logger.cpp:43
logger::displayInfo
void displayInfo(String)
int displayError(int)
Definition:
Logger.cpp:36
logger::displayError
int displayError(int)
Definition:
Logger.cpp:10
logger
Definition:
Logger.h:22
Generated on Mon Apr 16 2018 09:42:37 for ASMESDC2018 by
1.8.11