\chapter{LAUNCH CAMPAIGN PREPARATION}
    This chapter summarizes all information necessary for a successful flight campaign.
    
\section{Input for the Campaign/Flight Requirement Plans}
    

\subsection{Dimensions and Mass}
    \MassAndDimensions
    \change[3]{The center of gravity is determined relative to the interface screw closest to the electrical interface with an offset in the xz-plane of 10,9\,mm so that the plane aligns with the bottom of the insulation box. The center of gravity can be seen in yellow and the origin lies within the purple and the whites planes (see figure \ref{fig:CoG2})}
    \begin{figure}[H]
        \centering
        \includegraphics[width=0.5\linewidth]{images/experiment_description/CAD_drawings/CoG.PNG}
        \caption{\change[3]{Center of gravity relative to origin}}
        \label{fig:CoG2}
    \end{figure}

\clearpage
\subsection{Safety Risks}
    \change{In this section all safety risks and risks related to the launch campaign are summarized. An overview of all risks related to the experiment can be found in the risk register in section \ref{sec:risk_register}.}
    \color{black}
    \begin{longtable}[H]{|m{1cm}|m{3cm}|m{2.5cm}|m{6.5cm}|}
		\caption{Ground and flight safety risks}\\
		\hline \rowcolor{lightgrey} \textbf{ID} & \textbf{Risk} & \textbf{Key Characteristics} & \textbf{Mitigation}\\
  
        \hline
            \color{black} SF01 & \color{black} Use of \acf{HV}. & \color{black} \ac{HV} above 60\,V DC & \color{black} Building a pressure housing around the experiment to avoid corona discharges and prevent direct contact with the \acf{HV}. \replaced[4]{During descent the \ac{HV} will be automatically ramped down once the pressure outside the pressure housing rises above 800\,mbar. Furthermore, the \ac{HV} will be ramped down if the pressure inside the pressure housing falls under 500\,mbar.}{The \ac{HV} will be ramped down for pressures above 800\,mbar during descent and leakage of the pressure housing.} Integration of LED indicating \acs{HV} operation. The energy stored in the \ac{HV} electronics will not exceed 4\,mJ.\\

     %    \hline 
    	% 	SF02 & Sharp edges of the mechanical housing. & & Sharp edges are mitigated in the design process. Furthermore, the experiment is placed inside a pressure housing and inside an insulation box.\\
        
     %    \hline 
    	% 	TC01 & Data damage on the SD-Card during landing. & & The downlink will be used as additional backup. No data will be stored on the SD\:card for pressures above 800\,mbar during descent.\\

     %    \hline 
    	% 	TC03 & E-Link fails during flight. & & Data will additionally be stored on a SD\:memory card. \\

     %    \hline 
    	% 	TC06 & Dropout of supply voltage during flight & & Acceptable risk: No action possible for the team.\\
      
    	% \hline 
    	% 	TC07 & Failure of a part of the sensor head during flight due to defect bond wires. & & Careful installation of the sensor head in the mounting solution. Test functionality before flight.\\
    		
    	% \hline 
    	% 	MS01 & Onboard software program fails during flight due to coding errors. & & Software is well tested by our institute. \\
    		
    	% \hline 
    	% 	MS02 & Ground software program fails during flight. & & Secure stability of software through long time tests and bring a second ground station. \\
      
     %    \hline
    	% 	MS04 & Experiment delivery to launch campaign not in time. & & Send experiment via \ac{ZARM} after thermal vacuum test week. \\
        
    	% \hline 
    	% 	VE01 & Mounting solution breaks during landing, experiment becomes loose. & & Conduct pre-flight test to make sure mounting solution is stable enough to withstand sufficient impacts.\\
      
    	% \hline
    	% 	VE02 & Whole experiment destruction on landing & & E-Link data backup on ground station.\\
      
    	% \hline 
    	% 	VE03 & Loosening of critical screws during flight. & & Vibration test will ensure stability.\\
        \hline
    \end{longtable}
    \color{black}

%%%%%%% OLD TABLE %%%%%%%%
  %   \begin{longtable}[H]{|m{3cm}|m{4cm}|m{7cm}|}
		% \caption{Ground and flight safety risks}\\
		% \hline \rowcolor{lightgrey} \textbf{Risk} & \textbf{Key Characteristics} & \textbf{Mitigation}\\
  %       \hline
  %   	Temperature of electronics & The temperature of the electronic components may become hotter than 60\,$^\circ$C. & Cooling the electronics with the natural colder temperatures in Kiruna before and during launch. \\
  %       \hline
  %       Sharp edges & The edges of the mechanical housing may damage other experiments in case of a collision. & The experiment is safely fixed inside a styrofoam box which has no sharp edges. \\
  %       \hline
  %       High Voltage &
  %       The \acf{PMT} uses \acf{HV} to operate. & Use of a pressure housing around the experiment to avoid corona discharges and prevent direct contact with the high voltage. The \ac{HV} will be ramped down for pressures above 800\,mbar during descent and failure of the pressure housing. \\
  %       \hline
  %       Ground Support Equipment &
  %       It is unlikely that we have to repair/overwork our experiment, however our ground station may have issues during the flight. & We provide two independent ground stations.\\
  %       \hline
  %   \end{longtable}

    \clearpage

\subsection{Electrical Interfaces}
    \begin{longtable}{|m{7cm}|m{6cm}|}
		\caption{Electrical interfaces} \label{tab:electrical_interfaces}\\
		\hline \rowcolor{lightgray}
			\textbf{BEXUS Electrical Interfaces} & \\
		\hline 
			\rowcolor{lightgrey} \textbf{E-Link Interface: E-Link required?} & \textbf{Yes} \\
		\hline 
			 Number of E-Link interfaces: & 1 \\
        \hline
          Number of required IP addresses: & \change[3]{\begin{itemize}
              \item 1 address for the instrument
              \item 1 address for the ground station communicating with the instrument
              \item 2 additional addresses for laptops communicating with the ground station.
          \end{itemize}} \\
		\hline 
			 Data rate - downlink: & max. 200 kbit/s, throttled \\
		\hline
			 Data rate - uplink: & 4.8 kbit/s \\
			\hline
				Interface type (RS-232, Ethernet): & Ethernet \\
		  \hline
				\rowcolor{lightgrey} \textbf{Power system: Gondola power required?} & \textbf{Yes} \\
		  \hline 
				Peak power and current consumption: & 
				\replaced[3]{5.0\,W}{4.1\,W}\change[4]{ /0.2\,A}\\
		  \hline 
				Average power and current consumption: & \replaced[3]{5.0\,W}{4.1\,W}\change[4]{ /0.2\,A}\\
        \hline 
				Total power and current consumption after liftoff: & \change[4]{25\,Wh/1.0\,Ah (Assuming the experiment runs for 5 five hours after liftoff. The experiment will turn off once power is disconnected by the recovery team.)}\\
		  \hline 
				\rowcolor{lightgrey} \textbf{Power system: Experiment includes batteries?} & \textbf{No} \\
				
		 \hline
	\end{longtable}

    \pagebreak

\subsection{Launch site requirements}
    % Team \ac{CHAOS} plans to attend the launch campaign with six persons.
    \begin{longtable}{|p{3cm}|p{4.5cm}|p{4.5cm}|}
    		\caption{Launch Site Requirements}\\
    		\hline \rowcolor{lightgrey}
    		\textbf{Category} & \textbf{Item} & \textbf{Amount} \\
            \hline
    		Work Station & Tables & 3 \\
            \cline{2-3} & Chairs & 6 \\
            \cline{2-3} & 230\,V wall socket & \\
            \cline{2-3} & 28\,V power supply for ground test & \\
            \cline{2-3} & Internet connection & \\
            \cline{2-3} & \change[4]{White board and markers} & \change [4]{1 board and multiple markers}\\
            \cline{2-3} & \change[4]{Network switch to connect multiple laptops to the Ethernet network} & \change [4]{1 with at least three ports}\\
    		\hline
            Tools & \change[4]{Multimeters} & 2 \\
            \cline{2-3} & Soldering station on demand & \\
            \hline
    \end{longtable}
    \change[4]{All items mentioned in the table above have to be provided by \acs{SSC}/\ac{ZARM}. Everything else will be brought by ourselves or we will let it be shipped to \acs{Esrange} by \ac{ZARM}.} We will provide control stations for our experiment (laptops).


\subsection{Flight Requirements}
    \begin{longtable}{|p{4cm}|p{8cm}|}
		\caption{Flight requirements}\\
		\hline \textbf{Optimal Altitude} & To measure primary \acfp{GCR} altitudes \textbf{above} the Pfotzer maximum at 20\,km are needed. \replaced[3]{This is the minimum requirement to measure primary \acp{GCR},}{Altitudes between 25 and 30\,km as stated in the \ac{BEXUS} User Manual are fine,} but altitudes as high as possible are desired to minimize measurements of secondary particles.\\
        \hline \textbf{Preferred Path} & No Requirements\\
        \hline \textbf{Minimum Float Time} & Float time should be \deleted[4]{around} two hours, but longer float times are generally better to gather as much statistics as possible.\\
        \hline \textbf{Ground Track Length} & No Requirements\\
        \hline \textbf{Light/Dark Condition} & No Requirements \\
		\hline
    \end{longtable}

\subsection{Accommodation Requirements}
    \ac{CHAOS} is interested in primary \acfp{GCR} which enter the detector array from above. Therefore, there should be no other experiments above \ac{CHAOS} which could possible shield the experiment. The shielding from the balloon should be negligible. Furthermore, \ac{CHAOS} should be positioned as far away from other experiments as possible to minimize mechanical and electronical disturbances.

\subsection{Additional Requirements}
    \subsubsection{Grounding}
        \change[4]{CHAOS will be grounded to the gondola via a grounding strip and the mounting rails.} \change[5]{The grounding strip was removed during launch campaign as requested by \ac{SSC}.}

    \subsubsection{Power-Off}
        \change[4]{If the there is a power-off for all experiments we need to be notified to make our experiment stop writing data to the SD card in order to protect it.}
        
    \clearpage

\section{Preparation and Test Activities at \acs{Esrange}}
    In this section all activities performed at \ac{Esrange} prior to launch will be described. \change{\deleted[4]{This section will be updated once more detailed information about the schedule of the launch campaign and the attending team members are available.}}
  %   \color{black}
  %   \begin{longtable}{|p{1.8cm}|p{1.5cm}|p{3.3cm}|p{2cm}|p{1.6cm}|p{1.8cm}|}
		% \caption{List of planned activities}\\
		% \hline \rowcolor{lightgrey}
		% \textbf{Time/Day} & \textbf{Main Task} & \textbf{Description} & \textbf{Responsible} & \textbf{Duration [h:m]} & \textbf{Comments} \\
  %       \hline
		% Day 1 & Inspection of the instrument & The instrument is inspected for possible damage from transportation. & & 01:00 & \\
		% \hline
  %       Day 1 & Ground Test & All major functionalities of the instrument are tested on ground. & & 01:00 & \\\hline
  %       Day 2 & Mounting & The experiment is mounted to the gondola and connected to the power and data systems. & & 03:00 & \\\hline
  %   \end{longtable}
    \begin{longtable}{|p{1.8cm}|p{1.9cm}|p{3.0cm}|p{2cm}|p{1.4cm}|p{1.8cm}|}
		\caption{List of planned activities}\\
		\hline \rowcolor{lightgrey}
		\textbf{Time/Day} & \textbf{Main Task} & \textbf{Description} & \textbf{Responsible} & \textbf{Duration [h:m]} & \textbf{Comments} \\
        \hline
        27th September 2024 & Arrival at \ac{Esrange} & The first six team members arrive at \ac{Esrange}. & & & \\
        \hline
        28th September 2024 & Unpacking and setup of the work station & The shipped instrument and tools are unpacked. Furthermore, the work station is set up. & Whole team & 02:00 & Individual subtasks will be distributed as needed.\\
        \cline{2-6} & Visual inspection of the instrument & The inside of the insulation box and outside of the pressure housing are visually inspected for possible damage. & \nicolas, \ava, \hannes & 01:00 & It is not planned to open the pressure housing in Kiruna.\\
        \cline{2-6} & Individual Experiment Tests & The instrument is tested for functionality at the work station. Ideally, the IP addresses for the Ethernet connection are already loaded into the instrument. & \pierre, \hannes & 04:00 & If the instrument works, a ground measurement will be started.\\
        \hline
		29th/30th September 2024 & Individual Experiments Tests & The instrument is tested for functionality at the work station. & \pierre, \hannes & 06:00 & If the instrument works, a ground measurement will be started.\\
        \cline{2-6} & Integration onto the gondola & The experiment is mounted to the gondola and the connection to the gondola Ethernet and power is prepared. & \ava, \nicolas & 02:00 & \\
        \cline{2-6} & Interference Test & The instrument is tested for functionality on the gondola using the provided Ethernet and power connection. A radio frequency interference test will be performed. & \pierre, \hannes, \ava & 06:00 & \\
        \cline{2-6} & Flight Compatibility Test & All experiments are moved to the launch pad and tested for functionality. & \pierre, \hannes, \ava & 06:00 & \\
        \hline
        1st October 2024 & Arrival at \ac{Esrange} & The rest of the team arrives at \ac{Esrange}. & & & \\
        \cline{2-6} & Opening of launch window & Waiting for the launch of the balloon. & Whole team & & \\
        \hline
    \end{longtable}
    \change[4]{This schedule is preliminary and can be changed if needed. The responsible persons given in the table above are the main responsible persons because they have the most expertise for the tasks. Other team members can always cover some related subtasks if needed.}

    \clearpage

\section{Timeline for Countdown and Flight}
    This section will include information about all operations which are needed to successfully perform the experiment.
    \color{black}
    \begin{longtable}{|p{1.5cm}|p{5cm}|p{5cm}|}
		\caption{Timeline for countdown and flight}\\
		\hline \rowcolor{lightgrey}
		\textbf{Time [s]} & \textbf{Signal} & \textbf{Function} \\
        \hline
        T - X & Power On & Experiment \deleted[3]{including \ac{HV}} switched on \change[4]{automatically by connection to power}; \replaced[4]{Automatic start of data storage to the SD card; Manual start of data storage via Ethernet connection}{Start of data storage}\\
        \hline
        \change[3]{T - 300} & \change[3]{\ac{HV} On} & \change[3]{The \ac{HV} has to be ramped up \change[4]{manually}}. \\
        \hline
		T + 0\,s & Lift Off & Start of the balloon \\
		\hline
        T + X & Air pressure outside the pressure housing above 800\,mbar during descent & \replaced[4]{Automatic shutdown}{Shutdown} of \ac{HV} \change[3]{(off after ten minutes)} and \change[4]{automatic} stop of data storage on SD card \\
		\hline
    \end{longtable}
    \color{black}
        \color{black}
    \begin{longtable}{|p{1.5cm}|p{5cm}|p{5cm}|}
		\caption{Safety measures}\\
		\hline \rowcolor{lightgrey}
		\textbf{Time [s]} & \textbf{Signal} & \textbf{Function} \\
        \hline
        T + X & Air pressure inside the pressure housing drops below \replaced[4]{500\,mbar}{certain value (to be determined)}  & \replaced[4]{Automatic shutdown}{Shutdown} of \ac{HV} \change[3]{(off after ten minutes)}\\
		\hline
        T + X & Part of the electronics fails & \replaced[4]{Automatic shutdown}{Shutdown} of \ac{HV} \change[3]{(off after ten minutes)}\\
		\hline
    \end{longtable}
    \color{black}

\section{Post-Flight Activities}

    \change{For the recovery of the experiment the recovery team only has to plug out the \textit{Amphenol} power and E-Link connectors. For the power plug the team has to turn it counter clockwise and then pull it out. For the E-Link plug the team has to push the plastic trigger and pull it out. No further actions need to be done.}
    \change {Due to concerns, an LED was added to indicate high voltage operation. When the high voltage is off, the LED flashes green, and when the high voltage is on, the LED flashes red. Unplugging is not dangerous, even when \ac{HV} is operating, and once unplugged, \ac{HV} will definitely not be generated anymore.} \change[4]{The energy stored in the \ac{HV} electronics does not exceed 4\,mJ posing no health hazard. The \ac{HV} electronics are enclosed inside the experiment multiple times so that no direct contact is possible. If power is disconnected while the \ac{HV} is on, the \ac{HV} will have fully discharged within 10 minutes.}

    \begin{figure}
        \centering
        \includegraphics[width=0.5\linewidth]{images/experiment_description/electrical interface.jpg}
        \caption{\change[4]{Picture of the electrical interface on the outside of the insulation box with the power connection at the top, the status LED in the middle and the ethernet connection at the bottom.}}
        \label{fig:connector_plate_chapter6}
    \end{figure}

    \replaced{After the recovery \change[3]{the outside of} the experiment will be visually inspected for possible damage. \replaced[3]{The recorded data will be saved from the SD card back in Kiel. If the ethernet connection did not fail during the flight, a first data analysis can be performed using this data.}{The recorded data will be saved from the SD card and a first analysis will be performed.} An in-depth inspection of the instrument and a detailed analysis of the data will be done later on back in Kiel.}{In this section all activities performed after landing of the experiment will be described.}