ECE4760 - Laser Projector (ipb7, jcc384, pfc38)  1
Raster Laser Projection
Macros
parameters.h File Reference

Compile-time parameters to control system. More...

Go to the source code of this file.

Macros

#define IMAGE_HEIGHT   (10)
 
#define IMAGE_WIDTH   (50)
 
#define RED_PHASE_SHIFT   (0)
 Shift to the right of the red laser. More...
 
#define GREEN_PHASE_SHIFT   (0)
 Shift to the right of the green laser. More...
 
#define BLUE_PHASE_SHIFT   (0)
 Shift to the right of the blue laser. More...
 
#define PHASE_SHIFT_PADDING   (0)
 
#define RENDERING_TAB_WIDTH   (4)
 
#define Y_AXIS_MIN_COMMAND   (0 * 1023)
 Min voltage to output to drive the y-axis mirror. More...
 
#define Y_AXIS_MAX_COMMAND   ((3/3.3) * 1023)
 Max voltage to output to drive the y-axis mirror. More...
 
#define JOYSTICK_RAW_POS_RANGE   (1024/2)
 
#define JOYSTICK_RAW_MIDDLE   (1024/2)
 
#define JOYSTICK_RAW_NEG_RANGE   (1024/2)
 
#define JOYSTICK_OUTPUT_RANGE   (100)
 

Detailed Description

Compile-time parameters to control system.

Author
Istvan Burbank, Peter Friend, James Cassell
Date
2016-10-23 Parameters set here are ones that the program adapts to. The set of all parameters should completely configure the reasonably variable parts of the system.

Definition in file parameters.h.

Macro Definition Documentation

§ BLUE_PHASE_SHIFT

#define BLUE_PHASE_SHIFT   (0)

Shift to the right of the blue laser.

How many pixels to the right the red laser is of the laser with zero shift. Must be smaller than PHASE_SHIFT_PADDING.

Definition at line 51 of file parameters.h.

§ GREEN_PHASE_SHIFT

#define GREEN_PHASE_SHIFT   (0)

Shift to the right of the green laser.

How many pixels to the right the red laser is of the laser with zero shift. Must be smaller than PHASE_SHIFT_PADDING.

Definition at line 43 of file parameters.h.

§ IMAGE_HEIGHT

#define IMAGE_HEIGHT   (10)

Projected image height and width in pixels.

Definition at line 18 of file parameters.h.

§ IMAGE_WIDTH

#define IMAGE_WIDTH   (50)

Definition at line 19 of file parameters.h.

§ JOYSTICK_OUTPUT_RANGE

#define JOYSTICK_OUTPUT_RANGE   (100)

Definition at line 92 of file parameters.h.

§ JOYSTICK_RAW_MIDDLE

#define JOYSTICK_RAW_MIDDLE   (1024/2)

Definition at line 85 of file parameters.h.

§ JOYSTICK_RAW_NEG_RANGE

#define JOYSTICK_RAW_NEG_RANGE   (1024/2)

Definition at line 89 of file parameters.h.

§ JOYSTICK_RAW_POS_RANGE

#define JOYSTICK_RAW_POS_RANGE   (1024/2)

Definition at line 83 of file parameters.h.

§ PHASE_SHIFT_PADDING

#define PHASE_SHIFT_PADDING   (0)

How much wider to make the frame buffer to accomodate the phase shifts.

Definition at line 56 of file parameters.h.

§ RED_PHASE_SHIFT

#define RED_PHASE_SHIFT   (0)

Shift to the right of the red laser.

The phase shift in pixels between lasers. May only be positive numbers which represent how many pixels after left side of the frame the color should start. Values must be less than PHASE_SHIFT_PADDING.

One laser should have a zero shift, this is the one to the right of which the others are shifted. How many pixels to the right the red laser is of the laser with zero shift. Must be smaller than PHASE_SHIFT_PADDING.

Definition at line 35 of file parameters.h.

§ RENDERING_TAB_WIDTH

#define RENDERING_TAB_WIDTH   (4)

Definition at line 60 of file parameters.h.

§ Y_AXIS_MAX_COMMAND

#define Y_AXIS_MAX_COMMAND   ((3/3.3) * 1023)

Max voltage to output to drive the y-axis mirror.

This is in the 10-bit data format accepted by the DAC

Definition at line 74 of file parameters.h.

§ Y_AXIS_MIN_COMMAND

#define Y_AXIS_MIN_COMMAND   (0 * 1023)

Min voltage to output to drive the y-axis mirror.

This is in the 10-bit data format accepted by the DAC

Definition at line 67 of file parameters.h.