package org.josast.amicalsat;

import org.josast.amicalsat.generated.FrameTlmAmicalsat.CuLogType;
import org.josast.amicalsat.generated.FrameTlmAmicalsat.CuType;

//#[CU_R/CU_L];LOG;[Timestamp];[CPU voltage];[CPU temperature];[flags ]
public class CuLogTypeFrame extends Frame {



	private String cpuVoltage;
	private String cpuTemperature;
	private String cuFlags;

	@Override
	protected void setUpFrame() {

		CuType cutype = (CuType) data.frameTlmEntrySat().payload().tlmAreaSwitch();
		CuLogType log = (CuLogType) cutype.tlmsw();
		
		timeStamps = cutype.timesTamps();
		hash.put("TimeStamp", timeStamps);
		cpuVoltage = log.cpuVoltage();
		hash.put("cpuVoltage", cpuVoltage);
		cpuTemperature = log.cpuTemperature();
		hash.put("cpuTemperature", cpuTemperature);		
		cuFlags = log.cuFlags();
		hash.put("cuFlags", cuFlags);		
		

	}



}
