cmd("ADCS ADCS_PWM_BASELINE with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 5, CCSDS_FUNCCODE 5, CCSDS_CHECKSUM 0, CODE 'am', PWM 80")
sleep(1)
cmd("ADCS ADCS_CTRL_ALG with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 5, CCSDS_FUNCCODE 5, CCSDS_CHECKSUM 0, CODE 'ac', CTRL_ALG DBSUNCFS")
sleep(1)
for i in 0..5
cmd("ADCS ADCS_YAW_CMD with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 7, CCSDS_FUNCCODE 6, CCSDS_CHECKSUM 0, CODE 'ao', YAW_CMD 45")
sleep(45)
cmd("ADCS ADCS_YAW_CMD with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 7, CCSDS_FUNCCODE 6, CCSDS_CHECKSUM 0, CODE 'ao', YAW_CMD 90")
sleep(45)
cmd("ADCS ADCS_YAW_CMD with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 7, CCSDS_FUNCCODE 6, CCSDS_CHECKSUM 0, CODE 'ao', YAW_CMD 180")
sleep(45)
cmd("ADCS ADCS_YAW_CMD with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 7, CCSDS_FUNCCODE 6, CCSDS_CHECKSUM 0, CODE 'ao', YAW_CMD 270")
sleep(45)
cmd("ADCS ADCS_YAW_CMD with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 7, CCSDS_FUNCCODE 6, CCSDS_CHECKSUM 0, CODE 'ao', YAW_CMD 180")
sleep(45)
cmd("ADCS ADCS_YAW_CMD with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 7, CCSDS_FUNCCODE 6, CCSDS_CHECKSUM 0, CODE 'ao', YAW_CMD 90")
sleep(45)
end
cmd("ADCS ADCS_CTRL_ALG with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 5, CCSDS_FUNCCODE 5, CCSDS_CHECKSUM 0, CODE 'ac', CTRL_ALG DEFAULT")
sleep(1)
cmd("ADCS ADCS_PWM_BASELINE with CCSDS_STREAMID 6614, CCSDS_SEQUENCE 49152, CCSDS_LENGTH 5, CCSDS_FUNCCODE 5, CCSDS_CHECKSUM 0, CODE 'am', PWM 0")
