ECE4760 - Laser Projector (ipb7, jcc384, pfc38)
1
Raster Laser Projection
parameters.h
Go to the documentation of this file.
1
12
#ifndef PARAMETERS_H
13
#define PARAMETERS_H
14
18
#define IMAGE_HEIGHT (10)
19
#define IMAGE_WIDTH (50)
20
35
#define RED_PHASE_SHIFT (0)
36
43
#define GREEN_PHASE_SHIFT (0)
44
51
#define BLUE_PHASE_SHIFT (0)
52
56
#define PHASE_SHIFT_PADDING (0)
57
58
/* tab is 4 spaces for purposes of text rendering
59
*/
60
#define RENDERING_TAB_WIDTH (4)
61
67
#define Y_AXIS_MIN_COMMAND (0 * 1023)
68
74
#define Y_AXIS_MAX_COMMAND ((3/3.3) * 1023)
75
76
/*
77
* Controls conversion of ADC values into nice direction vectors.
78
*/
79
80
// size of range of positive part of joystick
81
/* Preliminarily set to 512 because this is half of the range of the unsigned 10
82
bit ADC. Thus from 512 to 1024 is suppoed to be a positive setting. */
83
#define JOYSTICK_RAW_POS_RANGE (1024/2)
84
// where in the ADC range the neutral position of the joystick is
85
#define JOYSTICK_RAW_MIDDLE (1024/2)
86
// size of range of negative part of joystick.
87
/* Preliminarily set to 512 because this is half of the range of the unsigned 10
88
bit ADC. Thus from 0 to 512 is suppoed to be a negative setting. */
89
#define JOYSTICK_RAW_NEG_RANGE (1024/2)
90
// range of positive or negative part of output value of joystick (full range is
91
// twice this)
92
#define JOYSTICK_OUTPUT_RANGE (100)
93
94
#endif // PARAMETERS_H
Generated by
1.8.12