
%%
sleepSeconds = 64 * 60;
sleepJoules = 2;
sleepVolts = 28.0;

sleepAmps = sleepJoules / (sleepSeconds * sleepVolts)
%%
% This is just a guess for the short term
% Needs to be calculated from eng files
wakeFromSleepJoules = 5;
%%
% This is from Dana's estimate just for the short term
% Needs to be calculated from eng files
% ISUS/NO3 + SBE41 + pH + FLBB + Optode + OCR (guess)
joulesPerSample = 3.62 + 3.04 + 0.16 + 0.1 +0.5;
%%
profileDepth = 200;
numProfiles = 100;
samplesPerProfile = 20;
descendSpeedMPS = 0.2;
ascendSpeedMPS = 0.1;
totalProfileSeconds = (profileDepth / descendSpeedMPS) + (profileDepth / ascendSpeedMPS)

numAnchorSamples = 4;
anchorTime = (numAnchorSamples - 1) * sleepSeconds;

anchorJoules = ((numAnchorSamples - 1) * wakeFromSleepJoules) + (numAnchorSamples * joulesPerSample) ...
    + (numAnchorSamples - 1) * (sleepSeconds * sleepVolts * sleepAmps) 
%%
descendJoules = 100;
PVMaintenanceJoules = 10 * profileDepth;
anchorJoules = 100;
deanchorJoules = 500;
ascendJoules = 100;
surfaceOpsJoules = 1000;
totalSampleJoules = samplesPerProfile * joulesPerSample;
profileJoules = descendJoules + (2 * PVMaintenanceJoules) + anchorJoules...
    + deanchorJouiles + ascendJoules + surfaceOpsJoules + totalSampleJoules
%%
missionJoules = (numProfiles * profileJoules) descendJoules + (2 * PVMaintenanceJoules) + anchorJoules + deanchorJoules + surfaceOpsJouls
missionTime 
%%
numBatteries = 32;
batteryVolts - 28;
batteryAmpHours = 3.3;
selfDischargePrecentPerYear = 0.03;
batteryJoules = batteryVolts * batteryAmpHours;
packJoules = numBatteries * batteryJoules;