@@ -37,6 +37,9 void send_dumb_hk( void ); | |||||
37 | void get_temperatures( unsigned char *temperatures ); |
|
37 | void get_temperatures( unsigned char *temperatures ); | |
38 | void get_v_e1_e2_f3( unsigned char *spacecraft_potential ); |
|
38 | void get_v_e1_e2_f3( unsigned char *spacecraft_potential ); | |
39 | void get_cpu_load( unsigned char *resource_statistics ); |
|
39 | void get_cpu_load( unsigned char *resource_statistics ); | |
|
40 | void set_hk_lfr_sc_potential_flag( bool state ); | |||
|
41 | void set_hk_lfr_calib_enable( bool state ); | |||
|
42 | ||||
40 |
|
43 | |||
41 | extern int sched_yield( void ); |
|
44 | extern int sched_yield( void ); | |
42 | extern void rtems_cpu_usage_reset(); |
|
45 | extern void rtems_cpu_usage_reset(); |
@@ -56,7 +56,6 void setCalibrationReload( bool state); | |||||
56 | void setCalibrationEnable( bool state ); |
|
56 | void setCalibrationEnable( bool state ); | |
57 | void setCalibrationInterleaved( bool state ); |
|
57 | void setCalibrationInterleaved( bool state ); | |
58 | void setCalibration( bool state ); |
|
58 | void setCalibration( bool state ); | |
59 | void set_hk_lfr_calib_enable( bool state ); |
|
|||
60 | void configureCalibration( bool interleaved ); |
|
59 | void configureCalibration( bool interleaved ); | |
61 | // |
|
60 | // | |
62 | void update_last_TC_exe( ccsdsTelecommandPacket_t *TC , unsigned char *time ); |
|
61 | void update_last_TC_exe( ccsdsTelecommandPacket_t *TC , unsigned char *time ); |
@@ -526,5 +526,26 void get_cpu_load( unsigned char *resour | |||||
526 |
|
526 | |||
527 | } |
|
527 | } | |
528 |
|
528 | |||
|
529 | void set_hk_lfr_sc_potential_flag( bool state ) | |||
|
530 | { | |||
|
531 | if (state == true) | |||
|
532 | { | |||
|
533 | housekeeping_packet.lfr_status_word[1] = housekeeping_packet.lfr_status_word[1] | 0x40; // [0100 0000] | |||
|
534 | } | |||
|
535 | else | |||
|
536 | { | |||
|
537 | housekeeping_packet.lfr_status_word[1] = housekeeping_packet.lfr_status_word[1] & 0xbf; // [1011 1111] | |||
|
538 | } | |||
|
539 | } | |||
529 |
|
540 | |||
530 |
|
541 | void set_hk_lfr_calib_enable( bool state ) | ||
|
542 | { | |||
|
543 | if (state == true) | |||
|
544 | { | |||
|
545 | housekeeping_packet.lfr_status_word[1] = housekeeping_packet.lfr_status_word[1] | 0x08; // [0000 1000] | |||
|
546 | } | |||
|
547 | else | |||
|
548 | { | |||
|
549 | housekeeping_packet.lfr_status_word[1] = housekeeping_packet.lfr_status_word[1] & 0xf7; // [1111 0111] | |||
|
550 | } | |||
|
551 | } |
@@ -996,18 +996,6 void setCalibration( bool state ) | |||||
996 | } |
|
996 | } | |
997 | } |
|
997 | } | |
998 |
|
998 | |||
999 | void set_hk_lfr_calib_enable( bool state ) |
|
|||
1000 | { |
|
|||
1001 | if (state == true) |
|
|||
1002 | { |
|
|||
1003 | housekeeping_packet.lfr_status_word[1] = housekeeping_packet.lfr_status_word[1] | 0x08; // [0000 1000] |
|
|||
1004 | } |
|
|||
1005 | else |
|
|||
1006 | { |
|
|||
1007 | housekeeping_packet.lfr_status_word[1] = housekeeping_packet.lfr_status_word[1] & 0xf7; // [1111 0111] |
|
|||
1008 | } |
|
|||
1009 | } |
|
|||
1010 |
|
||||
1011 | void configureCalibration( bool interleaved ) |
|
999 | void configureCalibration( bool interleaved ) | |
1012 | { |
|
1000 | { | |
1013 | setCalibration( false ); |
|
1001 | setCalibration( false ); | |
@@ -1171,4 +1159,6 void reset_lfr( void ) | |||||
1171 | set_lfr_soft_reset( 1 ); |
|
1159 | set_lfr_soft_reset( 1 ); | |
1172 |
|
1160 | |||
1173 | set_lfr_soft_reset( 0 ); |
|
1161 | set_lfr_soft_reset( 0 ); | |
|
1162 | ||||
|
1163 | set_hk_lfr_sc_potential_flag( true ); | |||
1174 | } |
|
1164 | } |
General Comments 0
You need to be logged in to leave comments.
Login now