1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-05-12 16:28:05 +00:00
cdf2018-principal/chef/src/diagnostics.h

24 lines
473 B
C
Raw Normal View History

2018-05-01 12:51:41 +00:00
#ifndef __DIAGNOSTICS_H_
#define __DIAGNOSTICS_H_
#include <stdbool.h>
// Constantes
2018-05-06 16:35:26 +00:00
#define DIAGNOSTIC_INTERVAL 100
2018-05-01 12:51:41 +00:00
#define DIAGNOSTIC_POLL_INTERVAL 100
#define DIAGNOSTIC_SERIAL_TIMEOUT 10000
2018-05-06 16:35:26 +00:00
#define DIAGNOSTIC_TENSION_TEST 3
2018-05-07 18:25:38 +00:00
#define DIAGNOSTIC_CODEUSES_DIFF_MIN 100
2018-05-10 08:09:44 +00:00
#define DIAGNOSTIC_TEMPS_ROTATION 500
2018-05-02 06:26:35 +00:00
typedef bool (*diagnosticFunc)(void* arg);
2018-05-01 12:51:41 +00:00
// Public
void runDiagnostics();
// Private
void execDiagnostic(char* name, diagnosticFunc diag, void* arg);
2018-05-01 12:51:41 +00:00
#endif