spel-uchile / SUCHAI

SUCHAI Cubesat flight software
GNU Lesser General Public License v3.0
20 stars 5 forks source link

Test set and execution of flight plan #19

Open carlgonz opened 9 years ago

carlgonz commented 9 years ago

Check that fligh plan variables are stored succesfully (by telecomands) and can be readed after a reset

toopazo commented 9 years ago

Set & exec verificado a traves de consola. Falta hacer lo mismo pero a nivel de TC.

Estando en el index 984 se agrego el comando "cmdId = 0x5002, param = 1" al index 986 (con una resolusion de 1min se ejecutaria 2min despues). El comando se agrego con exito y se ejcuto correctamente. Los comandos para hacer aquello fueron:

Nombre del commando | ejecucion en consola drp_id_fpl_set_index | exe_cmd 0x5005 986 (986 de 1440 => resolusion de 1min) drp_id_fpl_set_cmd | exe_cmd 0x5007 20482 (equivalente a 5002 <=> drp_id_print_dat_PayloadIndxs) drp_id_fpl_set_param | exe_cmd 0x5008 1

Log file: (...) [Dispatcher] CMD Result: 1 exe_cmd 0x5005 986 [Console] Se genera comando: 0x5005 [Dispatcher] Orig: 0x1101 | Cmd: 0x5005 | Param: 986 [Dispatcher] CMD Result: 1 exe_cmd 0x5006 986 [Console] Se genera comando: 0x5006 [Dispatcher] Orig: 0x1101 | Cmd: 0x5006 | Param: 986 [Dispatcher] CMD Result: 986 exe_cmd 0x5006 986 [Console] Se genera comando: 0x5006 [Dispatcher] Orig: 0x1101 | Cmd: 0x5006 | Param: 986 [Dispatcher] CMD Result: 986 [Houskeeping]: 20[s] actions .. [Houskeeping]: 1[min] actions .. [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0

45/25/165 16:24:35 pay_i = 0 = dat_pay_tmEstado exec_tick = 72 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 1 = dat_pay_battery exec_tick = 72 pay_i_tick_rate = 2

state = sta_pay_xxx_state_waiting_tx

pay_i = 2 = dat_pay_debug exec_tick = 72 pay_i_tick_rate = 3

state = sta_pay_xxx_state_waiting_tx

pay_i = 3 = dat_pay_lagmuirProbe exec_tick = 72 pay_i_tick_rate = 4

state = sta_pay_xxx_state_waiting_tx

pay_i = 5 = dat_pay_camera exec_tick = 72 pay_i_tick_rate = 6

state = sta_pay_xxx_state_inactive

pay_i = 7 = dat_pay_gyro exec_tick = 72 pay_i_tick_rate = 8

state = sta_pay_xxx_state_waiting_tx

pay_i = 8 = dat_pay_expFis exec_tick = 72 pay_i_tick_rate = 9

state = sta_pay_xxx_state_inactive

45/25/165 16:24:36 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 984 = (16*60+24)/SCH_FP_RESOLUTION last_index=984 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1 exe_cmd 0x5005 986 [Console] Se genera comando: 0x5005 [Dispatcher] Orig: 0x1101 | Cmd: 0x5005 | Param: 986 [Dispatcher] CMD Result: 1 [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:24:45 pay_i = 0 = dat_pay_tmEstado exec_tick = 73 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

45/25/165 16:24:45 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 984 = (16*60+24)/SCH_FP_RESOLUTION last_index=984 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1 exe_cmd 0x5007 20482 [Console] Se genera comando: 0x5007 [Dispatcher] Orig: 0x1101 | Cmd: 0x5007 | Param: 20482 [dat_set_FlightPlan_cmd] index = 986, cmdId = 0x5002 [Dispatcher] CMD Result: 1 [Houskeeping]: 20[s] actions .. [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:24:55 pay_i = 0 = dat_pay_tmEstado exec_tick = 74 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 1 = dat_pay_battery exec_tick = 74 pay_i_tick_rate = 2

state = sta_pay_xxx_state_waiting_tx

45/25/165 16:24:55 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 984 = (16*60+24)/SCH_FP_RESOLUTION last_index=984 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1103 | Cmd: 0x8002 | Param: 1 Beacon: 00SUCHAI010016410410 Uploading TRX configuration FEC: rs 1, random 1, viterbi 1 RADIO: rx 12, tx 12, preamble 75, max temp: 60 MORSE: enable: 1, mode: 2, delay 20, pospone 60, wpm 20, batt level 450, text 00SUCHAI010016410410\0xc2\0x01\0x05 MORSE: cycle: 1, volt:1 rxc:1 txc:1 tempa:1 tempb:1 rssi:1 rferr:1 HK: interval 5 [Dispatcher] CMD Result: 1 exe_cmd 0x5008 1 [Console] Se genera comando: 0x5008 [Dispatcher] Orig: 0x1101 | Cmd: 0x5008 | Param: 1 [Dispatcher] CMD Result: 1 [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:25:5 pay_i = 0 = dat_pay_tmEstado exec_tick = 75 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 2 = dat_pay_debug exec_tick = 75 pay_i_tick_rate = 3

state = sta_pay_xxx_state_waiting_tx

pay_i = 4 = dat_pay_gps exec_tick = 75 pay_i_tick_rate = 5

state = sta_pay_xxx_state_waiting_tx

45/25/165 16:25:5 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 985 = (16*60+25)/SCH_FP_RESOLUTION last_index=984 | SCH_FP_N_CMD=1440 [drp_fpl_check_and_exec] Se extrae cmdId = 0x7007, param = 985, ejecutando .. 45/25/165 16:25:6 [Dispatcher] CMD Result: 1 [Houskeeping]: 20[s] actions .. [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:25:15 pay_i = 0 = dat_pay_tmEstado exec_tick = 76 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 1 = dat_pay_battery exec_tick = 76 pay_i_tick_rate = 2

state = sta_pay_xxx_state_waiting_tx

pay_i = 3 = dat_pay_lagmuirProbe exec_tick = 76 pay_i_tick_rate = 4

state = sta_pay_xxx_state_waiting_tx

45/25/165 16:25:15 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 985 = (16*60+25)/SCH_FP_RESOLUTION last_index=985 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1 [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:25:25 pay_i = 0 = dat_pay_tmEstado exec_tick = 77 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 6 = dat_pay_sensTemp exec_tick = 77 pay_i_tick_rate = 7

state = sta_pay_xxx_state_waiting_tx

45/25/165 16:25:25 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 985 = (16*60+25)/SCH_FP_RESOLUTION last_index=985 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1 [Houskeeping]: 20[s] actions .. [Houskeeping]: 1[min] actions .. [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:25:35 pay_i = 0 = dat_pay_tmEstado exec_tick = 78 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 1 = dat_pay_battery exec_tick = 78 pay_i_tick_rate = 2

state = sta_pay_xxx_state_waiting_tx

pay_i = 2 = dat_pay_debug exec_tick = 78 pay_i_tick_rate = 3

state = sta_pay_xxx_state_waiting_tx

pay_i = 5 = dat_pay_camera exec_tick = 78 pay_i_tick_rate = 6

state = sta_pay_xxx_state_inactive

45/25/165 16:25:35 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 985 = (16*60+25)/SCH_FP_RESOLUTION last_index=985 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1 [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:25:45 pay_i = 0 = dat_pay_tmEstado exec_tick = 79 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

45/25/165 16:25:45 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 985 = (16*60+25)/SCH_FP_RESOLUTION last_index=985 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1 [Houskeeping]: 20[s] actions .. [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:25:55 pay_i = 0 = dat_pay_tmEstado exec_tick = 80 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 1 = dat_pay_battery exec_tick = 80 pay_i_tick_rate = 2

state = sta_pay_xxx_state_waiting_tx

pay_i = 3 = dat_pay_lagmuirProbe exec_tick = 80 pay_i_tick_rate = 4

state = sta_pay_xxx_state_waiting_tx

pay_i = 4 = dat_pay_gps exec_tick = 80 pay_i_tick_rate = 5

state = sta_pay_xxx_state_waiting_tx

pay_i = 7 = dat_pay_gyro exec_tick = 80 pay_i_tick_rate = 8

state = sta_pay_xxx_state_waiting_tx

45/25/165 16:25:56 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 985 = (16*60+25)/SCH_FP_RESOLUTION last_index=985 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1 [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:26:5 pay_i = 0 = dat_pay_tmEstado exec_tick = 81 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 2 = dat_pay_debug exec_tick = 81 pay_i_tick_rate = 3

state = sta_pay_xxx_state_waiting_tx

pay_i = 8 = dat_pay_expFis exec_tick = 81 pay_i_tick_rate = 9

state = sta_pay_xxx_state_inactive

45/25/165 16:26:5 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 986 = (16*60+26)/SCH_FP_RESOLUTION last_index=985 | SCH_FP_N_CMD=1440

[drp_fpl_check_and_exec] Se extrae cmdId = 0x5002, param = 1, ejecutando ..

Reading sta_PayloadIndxs Block

pay_i = 0 | maxIndx = 2919 | next = 2095 pay_i = 1 | maxIndx = 1999 | next = 288 pay_i = 2 | maxIndx = 499 | next = 21 pay_i = 3 | maxIndx = 19 | next = 18 pay_i = 4 | maxIndx = 199 | next = 15 pay_i = 5 | maxIndx = 14743 | next = 14744 pay_i = 6 | maxIndx = 2003 | next = 22 pay_i = 7 | maxIndx = 1499 | next = 10 pay_i = 8 | maxIndx = 0 | next = 0 [Dispatcher] CMD Result: 1 [Houskeeping]: 20[s] actions .. [FlightPlan3] min_check_period_ms (10000) actions .. [Dispatcher] Orig: 0x1106 | Cmd: 0x6001 | Param: 0 45/25/165 16:26:15 pay_i = 0 = dat_pay_tmEstado exec_tick = 82 pay_i_tick_rate = 1

state = sta_pay_xxx_state_waiting_tx

pay_i = 1 = dat_pay_battery exec_tick = 82 pay_i_tick_rate = 2

state = sta_pay_xxx_state_waiting_tx

45/25/165 16:26:15 [Dispatcher] CMD Result: 1 [Dispatcher] Orig: 0x1106 | Cmd: 0x5009 | Param: 0 [drp_fpl_check_and_exec] index = 986 = (16*60+26)/SCH_FP_RESOLUTION last_index=986 | SCH_FP_N_CMD=1440 drp_fpl_check_and_exec => NO se genera comando [Dispatcher] CMD Result: 1

carlgonz commented 9 years ago

Ahhh que buena! Una duda, quedó el issue abierto porque falta algo ahí?

Saludos!

Carlos González Cortés. Ingeniero Civil Eléctrico Universidad de Chile +56975535716

2015-01-14 16:28 GMT-03:00 Tomas Opazo notifications@github.com:

Reopened #19 https://github.com/proyectoSuchai/SUCHAI/issues/19.

— Reply to this email directly or view it on GitHub https://github.com/proyectoSuchai/SUCHAI/issues/19#event-218967799.

toopazo commented 9 years ago

Hacer lo mismo pero con TC

Para cerrar lo importante del Sw creo que nos falta solo eso y ajustar los errores del RTC. Porque descargar TM de Payloads ya lo hicimos la otra vez.

Slds

Tomás Opazo T. Electrical engineer http://spel.ing.uchile.cl/ cel: +56951214672

2015-01-14 17:03 GMT-03:00 Carlos notifications@github.com:

Ahhh que buena! Una duda, quedó el issue abierto porque falta algo ahí?

Saludos!

Carlos González Cortés. Ingeniero Civil Eléctrico Universidad de Chile +56975535716

2015-01-14 16:28 GMT-03:00 Tomas Opazo notifications@github.com:

Reopened #19 https://github.com/proyectoSuchai/SUCHAI/issues/19.

— Reply to this email directly or view it on GitHub https://github.com/proyectoSuchai/SUCHAI/issues/19#event-218967799.

— Reply to this email directly or view it on GitHub https://github.com/proyectoSuchai/SUCHAI/issues/19#issuecomment-69981529 .

carlgonz commented 8 years ago

Al final esto se utiliza o no?