%Real_Time_Workshop_Constants
Sample_Time=.001; %Seconds
PWM_Period = 1/20000; %Seconds


%Low Pass Filter Constants
R=10000; %Ohms
C=0.1e-6; %Farads


%Motor and Generator Contants
Motor_Inertia = 4.378e-6; %kg*m^2
Torque_Constant = 9.1; %Oz-In per amp
Motor_Rated_Current = 4; % Amps
Generator_Inertia = 4.378e-6; %kg*m^2
Generator_Voltage_Gain = 24/3500; %Volts per rpm

%Load Constants
Bulb_R = 12; %Standard 12 V automotive bulb (Ohms)

%Encoder Constant
Encoder_Gain = 2.5/1000; %Volts ver rpm.

%xPC Scope Parameters
Decimation = 100;
Number_of_Samples = 500;

%Flywheel Inertia
Flywheel_Inertia = 2e-3;