flag_lookup = [([0,0])] * 32 #assing list of 32 elements to represent 32 bits in flag string
#list structure [flag level, flag name]
flag_lookup[0] = ['state','USBMODE']
flag_lookup[1] = ['state','PREFLIGHT']
flag_lookup[2] = ['state','LAUNCH']
flag_lookup[3] = ['state','FLIGHT']
flag_lookup[4] = ['state','RECOVERY']
flag_lookup[5] = ['state','SETUP']
flag_lookup[6] = ['state','GROUNDSTATION']
flag_lookup[7] = ['info','DEBUG']
flag_lookup[8] = ['error','SPI']
flag_lookup[9] = ['error','I2C']
flag_lookup[10] = ['error','SERIAL']
flag_lookup[11] = ['error','LORA']
flag_lookup[12] = ['error','BARO']
flag_lookup[13] = ['error','BATT']
flag_lookup[14] = ['error','GPS']
flag_lookup[15] = ['error','IMU']
flag_lookup[16] = ['error','ESTIMATOR']
flag_lookup[17] = ['error','SD']
flag_lookup[18] = ['error','FLASH']
flag_lookup[19] = ['error','CAN']
flag_lookup[20] = ['error','ORIENTATION']
flag_lookup[21] = ['warn','BATT']
flag_lookup[22] = ['warn','PYRO1']
flag_lookup[23] = ['warn','PYRO2']
flag_lookup[24] = ['info','BOOST']
flag_lookup[25] = ['info','COAST']
flag_lookup[26] = ['info','APOGEE']
flag_lookup[27] = ['info','DROGUE CHUTE']
flag_lookup[28] = ['info','MAIN CHUTE']
