function [S_idx] = PacketDefinition()

%Packet Structure
S_idx.time = 1;
S_idx.DataIDs = 2;

S_idx.RPM = 3;
S_idx.VBus = 4;
S_idx.Iwind = 5;
S_idx.IBatt = 6;

S_idx.Status = 7;
S_idx.LoadDumpCurrent = 8;
S_idx.TargetVoltage = 9;
S_idx.TargetCurrent = 10;

S_idx.DiffPress = 11;
S_idx.StdDev = 12;
S_idx.ScaleFactor = 13;
S_idx.RetractFactor = 14;

S_idx.AuxTorque = 15;
S_idx.BiasCurrent = 16;
S_idx.ChargeCurrentLimit = 17;
S_idx.DrawCurrentLimit = 18;

end

