@@ -580,10 +580,21 int set_sy_lfr_b_bp_p0( ccsdsTelecommand | |||||
580 | */ |
|
580 | */ | |
581 |
|
581 | |||
582 | int status; |
|
582 | int status; | |
|
583 | unsigned char val; | |||
583 |
|
584 | |||
584 | status = LFR_SUCCESSFUL; |
|
585 | status = LFR_SUCCESSFUL; | |
585 |
|
586 | |||
586 |
|
|
587 | val = TC->dataAndCRC[ DATAFIELD_POS_SY_LFR_B_BP_P0 ]; | |
|
588 | ||||
|
589 | if (val < DEFAULT_SY_LFR_B_BP_P0 ) | |||
|
590 | { | |||
|
591 | status = send_tm_lfr_tc_exe_inconsistent( TC, queue_id, DATAFIELD_POS_SY_LFR_B_BP_P0+10, val ); | |||
|
592 | status = WRONG_APP_DATA; | |||
|
593 | } | |||
|
594 | else | |||
|
595 | { | |||
|
596 | parameter_dump_packet.sy_lfr_b_bp_p0 = val; | |||
|
597 | } | |||
587 |
|
598 | |||
588 | return status; |
|
599 | return status; | |
589 | } |
|
600 | } | |
@@ -598,10 +609,21 int set_sy_lfr_b_bp_p1( ccsdsTelecommand | |||||
598 | */ |
|
609 | */ | |
599 |
|
610 | |||
600 | int status; |
|
611 | int status; | |
|
612 | unsigned char val; | |||
601 |
|
613 | |||
602 | status = LFR_SUCCESSFUL; |
|
614 | status = LFR_SUCCESSFUL; | |
603 |
|
615 | |||
604 |
|
|
616 | val = TC->dataAndCRC[ DATAFIELD_POS_SY_LFR_B_BP_P1 ]; | |
|
617 | ||||
|
618 | if (val < DEFAULT_SY_LFR_B_BP_P1 ) | |||
|
619 | { | |||
|
620 | status = send_tm_lfr_tc_exe_inconsistent( TC, queue_id, DATAFIELD_POS_SY_LFR_B_BP_P1+10, val ); | |||
|
621 | status = WRONG_APP_DATA; | |||
|
622 | } | |||
|
623 | else | |||
|
624 | { | |||
|
625 | parameter_dump_packet.sy_lfr_b_bp_p1 = val; | |||
|
626 | } | |||
605 |
|
627 | |||
606 | return status; |
|
628 | return status; | |
607 | } |
|
629 | } | |
@@ -618,10 +640,21 int set_sy_lfr_s1_bp_p0( ccsdsTelecomman | |||||
618 | */ |
|
640 | */ | |
619 |
|
641 | |||
620 | int status; |
|
642 | int status; | |
|
643 | unsigned char val; | |||
621 |
|
644 | |||
622 | status = LFR_SUCCESSFUL; |
|
645 | status = LFR_SUCCESSFUL; | |
623 |
|
646 | |||
624 |
|
|
647 | val = TC->dataAndCRC[ DATAFIELD_POS_SY_LFR_S1_BP_P0 ]; | |
|
648 | ||||
|
649 | if (val < DEFAULT_SY_LFR_S1_BP_P0 ) | |||
|
650 | { | |||
|
651 | status = send_tm_lfr_tc_exe_inconsistent( TC, queue_id, DATAFIELD_POS_SY_LFR_S1_BP_P0+10, val ); | |||
|
652 | status = WRONG_APP_DATA; | |||
|
653 | } | |||
|
654 | else | |||
|
655 | { | |||
|
656 | parameter_dump_packet.sy_lfr_s1_bp_p0 = val; | |||
|
657 | } | |||
625 |
|
658 | |||
626 | return status; |
|
659 | return status; | |
627 | } |
|
660 | } | |
@@ -636,10 +669,21 int set_sy_lfr_s1_bp_p1( ccsdsTelecomman | |||||
636 | */ |
|
669 | */ | |
637 |
|
670 | |||
638 | int status; |
|
671 | int status; | |
|
672 | unsigned char val; | |||
639 |
|
673 | |||
640 | status = LFR_SUCCESSFUL; |
|
674 | status = LFR_SUCCESSFUL; | |
641 |
|
675 | |||
642 |
|
|
676 | val = TC->dataAndCRC[ DATAFIELD_POS_SY_LFR_S1_BP_P1 ]; | |
|
677 | ||||
|
678 | if (val < DEFAULT_SY_LFR_S1_BP_P1 ) | |||
|
679 | { | |||
|
680 | status = send_tm_lfr_tc_exe_inconsistent( TC, queue_id, DATAFIELD_POS_SY_LFR_S1_BP_P1+10, val ); | |||
|
681 | status = WRONG_APP_DATA; | |||
|
682 | } | |||
|
683 | else | |||
|
684 | { | |||
|
685 | parameter_dump_packet.sy_lfr_s1_bp_p1 = val; | |||
|
686 | } | |||
643 |
|
687 | |||
644 | return status; |
|
688 | return status; | |
645 | } |
|
689 | } | |
@@ -656,10 +700,21 int set_sy_lfr_s2_bp_p0( ccsdsTelecomman | |||||
656 | */ |
|
700 | */ | |
657 |
|
701 | |||
658 | int status; |
|
702 | int status; | |
|
703 | unsigned char val; | |||
659 |
|
704 | |||
660 | status = LFR_SUCCESSFUL; |
|
705 | status = LFR_SUCCESSFUL; | |
661 |
|
706 | |||
662 |
|
|
707 | val = TC->dataAndCRC[ DATAFIELD_POS_SY_LFR_S2_BP_P0 ]; | |
|
708 | ||||
|
709 | if (val < DEFAULT_SY_LFR_S2_BP_P0 ) | |||
|
710 | { | |||
|
711 | status = send_tm_lfr_tc_exe_inconsistent( TC, queue_id, DATAFIELD_POS_SY_LFR_S2_BP_P0+10, val ); | |||
|
712 | status = WRONG_APP_DATA; | |||
|
713 | } | |||
|
714 | else | |||
|
715 | { | |||
|
716 | parameter_dump_packet.sy_lfr_s2_bp_p0 = val; | |||
|
717 | } | |||
663 |
|
718 | |||
664 | return status; |
|
719 | return status; | |
665 | } |
|
720 | } | |
@@ -674,10 +729,21 int set_sy_lfr_s2_bp_p1( ccsdsTelecomman | |||||
674 | */ |
|
729 | */ | |
675 |
|
730 | |||
676 | int status; |
|
731 | int status; | |
|
732 | unsigned char val; | |||
677 |
|
733 | |||
678 | status = LFR_SUCCESSFUL; |
|
734 | status = LFR_SUCCESSFUL; | |
679 |
|
735 | |||
680 |
|
|
736 | val = TC->dataAndCRC[ DATAFIELD_POS_SY_LFR_S2_BP_P1 ]; | |
|
737 | ||||
|
738 | if (val < DEFAULT_SY_LFR_S2_BP_P1 ) | |||
|
739 | { | |||
|
740 | status = send_tm_lfr_tc_exe_inconsistent( TC, queue_id, DATAFIELD_POS_SY_LFR_S2_BP_P1+10, val ); | |||
|
741 | status = WRONG_APP_DATA; | |||
|
742 | } | |||
|
743 | else | |||
|
744 | { | |||
|
745 | parameter_dump_packet.sy_lfr_s2_bp_p1 = val; | |||
|
746 | } | |||
681 |
|
747 | |||
682 | return status; |
|
748 | return status; | |
683 | } |
|
749 | } |
General Comments 0
You need to be logged in to leave comments.
Login now