@@ -5,6 +5,7 | |||||
5 | #include "fsw_params_nb_bytes.h" |
|
5 | #include "fsw_params_nb_bytes.h" | |
6 | #include "tm_byte_positions.h" |
|
6 | #include "tm_byte_positions.h" | |
7 | #include "ccsds_types.h" |
|
7 | #include "ccsds_types.h" | |
|
8 | #include "stdint.h" | |||
8 |
|
9 | |||
9 | #define GRSPW_DEVICE_NAME "/dev/grspw0" |
|
10 | #define GRSPW_DEVICE_NAME "/dev/grspw0" | |
10 | #define UART_DEVICE_NAME "/dev/console" |
|
11 | #define UART_DEVICE_NAME "/dev/console" | |
@@ -360,6 +361,10 typedef struct { | |||||
360 | #define DEFAULT_SY_LFR_PAS_FILTER_TBAD 1.0 |
|
361 | #define DEFAULT_SY_LFR_PAS_FILTER_TBAD 1.0 | |
361 | #define DEFAULT_SY_LFR_PAS_FILTER_OFFSET 0 |
|
362 | #define DEFAULT_SY_LFR_PAS_FILTER_OFFSET 0 | |
362 | #define DEFAULT_SY_LFR_PAS_FILTER_SHIFT 0.5 |
|
363 | #define DEFAULT_SY_LFR_PAS_FILTER_SHIFT 0.5 | |
|
364 | #define DEFAULT_MODULUS 262144 // 65536 * 4 | |||
|
365 | #define DEFAULT_TBAD 65536 // 65536 | |||
|
366 | #define DEFAULT_OFFSET 0 // 65536 * 0 | |||
|
367 | #define DEFAULT_SHIFT 32768 // 65536 / 2 | |||
363 | #define DEFAULT_SY_LFR_SC_RW_DELTA_F 0.045 |
|
368 | #define DEFAULT_SY_LFR_SC_RW_DELTA_F 0.045 | |
364 | #define DEFAULT_SY_LFR_RW_K1 1. |
|
369 | #define DEFAULT_SY_LFR_RW_K1 1. | |
365 | #define DEFAULT_SY_LFR_RW_K2 8. |
|
370 | #define DEFAULT_SY_LFR_RW_K2 8. | |
@@ -368,10 +373,12 typedef struct { | |||||
368 |
|
373 | |||
369 | typedef struct{ |
|
374 | typedef struct{ | |
370 | unsigned char spare_sy_lfr_pas_filter_enabled; |
|
375 | unsigned char spare_sy_lfr_pas_filter_enabled; | |
371 | unsigned char sy_lfr_pas_filter_modulus; |
|
|||
372 | float sy_lfr_pas_filter_tbad; |
|
376 | float sy_lfr_pas_filter_tbad; | |
373 | unsigned char sy_lfr_pas_filter_offset; |
|
|||
374 | float sy_lfr_pas_filter_shift; |
|
377 | float sy_lfr_pas_filter_shift; | |
|
378 | uint64_t modulus_in_finetime; | |||
|
379 | uint64_t tbad_in_finetime; | |||
|
380 | uint64_t offset_in_finetime; | |||
|
381 | uint64_t shift_in_finetime; | |||
375 | float sy_lfr_sc_rw_delta_f; |
|
382 | float sy_lfr_sc_rw_delta_f; | |
376 | // rw1_k |
|
383 | // rw1_k | |
377 | float sy_lfr_rw1_k1; |
|
384 | float sy_lfr_rw1_k1; |
General Comments 0
You need to be logged in to leave comments.
Login now