1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-07-02 07:45:24 +02:00
cdf2018-principal/chef/src/diagnostics.h

21 lines
402 B
C
Raw Normal View History

2018-05-01 14:51:41 +02:00
#ifndef __DIAGNOSTICS_H_
#define __DIAGNOSTICS_H_
#include <stdbool.h>
// Constantes
#define DIAGNOSTIC_INTERVAL 500
#define DIAGNOSTIC_POLL_INTERVAL 100
#define DIAGNOSTIC_SERIAL_TIMEOUT 10000
2018-05-02 08:26:35 +02:00
#define DIAGNOSTIC_TENSION_TEST 1
#define DIAGNOSTIC_CODEUSES_DIFF_MIN 1000
2018-05-01 14:51:41 +02:00
// Public
void runDiagnostics();
// Private
2018-05-02 08:26:35 +02:00
void execDiagnostic(char *name, bool (*diagnostic)(void* arg), void* arg);
2018-05-01 14:51:41 +02:00
#endif