-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.h
More file actions
executable file
·41 lines (30 loc) · 843 Bytes
/
Copy pathconstants.h
File metadata and controls
executable file
·41 lines (30 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __CONSTANTS_H__
#define __CONSTANTS_H__
#include <fsl_device_registers.h>
#include <math.h>
#define PI 3.14159265f
// holds the time information
typedef struct time_s {
unsigned int minutes;
unsigned int seconds;
} time_s;
// stationary accelerations
extern int x_0;
extern int y_0;
extern int z_0;
extern float grav;
extern unsigned int BOARD_SIZE;
extern unsigned int ACCEL_POLL_TIME_INT;
extern float TIME_INT_S;
extern unsigned int TOTAL_WAYPOINTS;
extern float DIV_CONST;
extern float TIME_UNIT;
extern int SPEED_INC;
extern unsigned int GREEN_LED_DELAY;
extern unsigned int BLUE_LED_DELAY;
extern unsigned int BLUE_LED_DELAY_BASE;
extern unsigned int RED_LED_DELAY;
extern int toggled;
float calc_flash_delay(float percentage);
volatile extern time_s *time_remaining;
#endif