/* ************************************************************** */ /* * Module VTCOILPARAM * This module contains functions to assist in parameter handling * for the VTCOIL module. * * Zachary Wolf * 11/22/99 */ /* ************************************************************** */ /* INCLUDES */ #include #include "vtcoil.h" /* ************************************************************** */ /* PUBLIC FUNCTIONS */ /* ************************************************************** */ /* * vtcoilparam_fill_param_struct * This function fills the parameter structure using # defined * parameters. * * Zachary Wolf * 11/22/99 */ void vtcoilparam_fill_param_struct(struct vtcoil_param_struct* vtcoil_param) { /* Include parameter definitions */ #include "param.h" /* Set the VTcoil parameters */ vtcoil_param->board_addr = VTCOIL_BOARD_ADDR; vtcoil_param->k7011_addr = VTCOIL_K7011_ADDR; vtcoil_param->cm2100_addr = VTCOIL_CM2100_ADDR; vtcoil_param->pdi5025_addr = VTCOIL_PDI5025_ADDR; vtcoil_param->config = VTCOIL_CONFIG; vtcoil_param->num_encoder_pulse_per_rev = VTCOIL_NUM_ENC_PULSE_PER_REV; vtcoil_param->num_samp_per_rev = VTCOIL_NUM_SAMP_PER_REV; vtcoil_param->motor_acc = VTCOIL_MOTOR_ACC; vtcoil_param->motor_vel = VTCOIL_MOTOR_VEL; vtcoil_param->rel_motor_rot_dir = VTCOIL_REL_MOTOR_ROT_DIR; vtcoil_param->show_ui = VTCOIL_SHOW_UI; /* Done */ return; }