Revision bc6bc5271ca8c2cbf8107bdf243352e543f64b8e authored by Brian Angeles (Desktop) on 20 March 2023, 22:34:45 UTC, committed by Brian Angeles (Desktop) on 20 March 2023, 22:34:45 UTC
As a first step to generalizing the code, we removed the need to comment/uncomment the appropriate rig-specific parameters file and replace it with a local rig_config.s2s file that is ignored by Git. This way, changes can be made to this simple file without affecting the Github repository at all.
1 parent 3d78fa7
Parameters_D019.s2s
' D019 Specific parameters
'--------------------------------------------------------------------------------
' SEQUENCER FILE LOCATION
'--------------------------------------------------------------------------------
var SequencerFile$ := "C:\\Users\\Public\\RaymondLabCode\\Experiment Protocols\\Sequencer_D019";
'--------------------------------------------------------------------------------
' MISC PARAMETERS
'--------------------------------------------------------------------------------
'--------------------------------------------------------------------------------
' MOTOR CALIBRATION PARAMETERS
'--------------------------------------------------------------------------------
'Chair converstion factors
var ChairDegreesPerSecond2Voltage := 0.009323; 'Chair velocity to voltage (Scale)
var ChairDegreesPerSecondOffsetDefault := -.2; 'Chair velocity to voltage (offset)
var ChairDegreesPerSecondOffset := -.2; 'Starting value, is updated repeatedly
'Drum conversion factors
var DrumDegreesPerSecond2Voltage := 0.01; 'Drum velocity to voltage (Scale)
var DrumDegreesPerSecondOffsetDefault := 0.1; 'Drum velocity to voltage (offset)
var DrumDegreesPerSecondOffset := 0.1; 'Starting value, is updated repeatedly
'Channel 1: Scaling to display the drum COMMAND signal
var DrumVoltage2Velocity := 100; 'Voltage to Drum Velocity (Scale)
var DrumVoltage2VelocityC := 0; 'Voltage to Drum Velocity (offset)
'Channel 2: Scaling to display the chair COMMAND signal
var ChairVoltage2Velocity := 1/ChairDegreesPerSecond2Voltage; '107.42869;
var ChairVoltage2VelocityC := 0; 'Voltage to Chair Velocity (offset)
'Chair velocity readout
var ChairVelReadoutScale := -99.905; '
var ChairVelReadoutOffset := -.03213;
'Chair position readout
var ChairPosReadoutScale := -18.0145;
var ChairPosReadoutOffset := .03016;
'Drum velocity readout - NOT USED FOR D019
var DrumVelReadoutScale := 1;
var DrumVelReadoutOffset := 0;
'Scaling for drum position readout
var DrumPosReadoutScale := 20;
var DrumPosReadoutOffset := 0;
'Channel 5/6: Eye position readout
var EyeVoltage2Position := 1;
var EyeVoltage2PositionC := 0;
'Default servo direction for chair and drum -- 1 or -1'
var ChairResetDirection := 1;
var DrumResetDirection := 1;
'Scale factor for amplitude of sine wave drift'
var ChairDriftFactor := .06;
var DrumDriftFactor := .085;

Computing file changes ...