Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Utils
Common.h
Go to the documentation of this file.
1
#ifndef RENSSELAERMOTORSPORT_COMMON_H
2
#define RENSSELAERMOTORSPORT_COMMON_H
3
4
// Definition of common constants and macros used throughout the project
5
#define _SUCCESS 0
6
#define _FAILURE 1
7
8
// Print colors for terminal output
9
#define ANSI_COLOR_RED "\x1b[31m"
10
#define ANSI_COLOR_GREEN "\x1b[32m"
11
#define ANSI_COLOR_YELLOW "\x1b[33m"
12
#define ANSI_COLOR_BLUE "\x1b[34m"
13
#define ANSI_COLOR_MAGENTA "\x1b[35m"
14
#define ANSI_COLOR_CYAN "\x1b[36m"
15
#define ANSI_COLOR_RESET "\x1b[0m"
16
17
#define ESC "\x1b["
18
#define ESC_AQUA ESC "36m"
19
#define ESC_GREEN ESC "32m"
20
#define ESC_RED ESC "31m"
21
#define ESC_RESET ESC "0m"
22
23
#define TEST_DELIM "\t"
24
#define TEST_START ESC_AQUA "START"
ESC_RESET TEST_DELIM
25
#define TEST_PASS ESC_GREEN "PASS"
ESC_RESET TEST_DELIM
26
#define TEST_OK ESC_GREEN "OK"
ESC_RESET TEST_DELIM
27
#define TEST_ERR ESC_RED "ERR"
ESC_RESET TEST_DELIM
28
#define TEST_FAIL ESC_RED "FAIL"
ESC_RESET TEST_DELIM
29
30
31
#endif
// RENSSELAERMOTORSPORT_COMMON_H
Generated by
1.9.5