/* ************************************************************** */ /* * Module MOVEMAGPARAM * This module contains functions to assist in parameter handling * for the MOVEMAG module. * * Zachary Wolf * 9/7/05 */ /* ************************************************************** */ /* INCLUDES */ #include #include "movemag.h" /* ************************************************************** */ /* PUBLIC FUNCTIONS */ /* ************************************************************** */ /* * movemagparam_fill_param_struct * This function fills the parameter structure using # defined * parameters. * * Zachary Wolf * 9/7/05 */ void movemagparam_fill_param_struct(struct movemag_param_struct* movemag_param) { /* Include parameter definitions */ #include "param.h" /* Set the MOVEMAG parameters */ movemag_param->board_addr = MOVEMAG_BOARD_ADDR; movemag_param->esp7000_addr = MOVEMAG_ESP7000_ADDR; movemag_param->device_type = MOVEMAG_DEVICE_TYPE; movemag_param->axis_x = MOVEMAG_AXIS_X; movemag_param->axis_y = MOVEMAG_AXIS_Y; movemag_param->axis_z = MOVEMAG_AXIS_Z; movemag_param->axis_pitch = MOVEMAG_AXIS_PITCH; movemag_param->axis_yaw = MOVEMAG_AXIS_YAW; movemag_param->axis_roll = MOVEMAG_AXIS_ROLL; movemag_param->acc = MOVEMAG_ACC; movemag_param->vel = MOVEMAG_VEL; movemag_param->dist_to_pitch_pivot = MOVEMAG_DIST_TO_PITCH_PIVOT; movemag_param->dist_to_yaw_pivot = MOVEMAG_DIST_TO_YAW_PIVOT; movemag_param->dist_to_roll_pivot = MOVEMAG_DIST_TO_ROLL_PIVOT; /* Done */ return; }