function [S_idx] = PacketDefinition()

%Packet Structure
S_idx.time = 1;
S_idx.speed = 2;
S_idx.Force = 3;
S_idx.Pin = 4;

S_idx.VBus = 5;
S_idx.IBridge = 6;
S_idx.Pout = 7;
S_idx.eff = 8;
S_idx.ILoad = 9;

S_idx.BridgeDC = 10;
S_idx.LoadDC = 11;

S_idx.Vtarget = 12;
S_idx.Itarget = 13;
S_idx.P1DC1 = 14;

S_idx.Pmeas = 15;

S_idx.DbarMin = 16;

S_idx.ScaleFactor = 17;
S_idx.RetractFactor = 18;
S_idx.iTemp1 = 19;
S_idx.iTemp4 = 20;

S_idx.lag = 21;

S_idx.BattCurrentDraw = 22;  %This isn't part of the serial data stream, but is added to the Circular buffer in the serial port callback so appears to be.
S_idx.StdDev = 23;
S_idx.StdDevTarget = 24;
S_idx.comp_press = 25;
S_idx.Status = 26;

%Pneumatic Spring Data
S_idx.LoadCell = 27;
S_idx.PistonPosition = 28;
S_idx.UpperSpringPressure = 29;
S_idx.LowerSpringPressure = 30;

S_idx.PSpringStatus = 31;


%Battery Controller Data


S_idx.GroundFault = 32;
S_idx.BattControllerStatus = 33;

S_idx.StringPot = 34;
S_idx.TestMachineLoadCell = 35;



S_idx.CTD_Temp = 36;
S_idx.CTD_Sal = 37;
S_idx.epoch = 38;


end

