function SetMode1(can_channel, TargetVoltage, SpecificPower)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here
%Example usage: SetMode1(canch1,300,.25) to set the target voltage to 300V
%and the load dump DC to 25%.


messageout = canMessage(AssembleCanID(SourceID(), 10, 0), true, 2);
pack(messageout, 0, 0, 8, 'LittleEndian');  %Set Mode
pack(messageout, 1, 8, 8, 'LittleEndian');
transmit(can_channel, messageout);

%messageout = canMessage(AssembleCanID(SourceID(), 10, 0), true, 5);
%pack(messageout, 1, 0, 8, 'LittleEndian');
%pack(messageout, round(TargetVoltage), 8, 16, 'LittleEndian');
%pack(messageout, round(4096*SpecificPower), 24, 16, 'LittleEndian');
%transmit(can_channel, messageout);
end
