@@ -0,0 +1,13 | |||
|
1 | # LOAD FSW USING LINK 1 | |
|
2 | SpwPlugin0.StarDundeeSelectLinkNumber( 1 ) | |
|
3 | ||
|
4 | dsu3plugin0.openFile("/opt/DEV_PLE/FSW-qt/bin/fsw") | |
|
5 | dsu3plugin0.loadFile() | |
|
6 | ||
|
7 | dsu3plugin0.run() | |
|
8 | ||
|
9 | # START SENDING TIMECODES AT 1 Hz | |
|
10 | SpwPlugin0.StarDundeeStartTimecodes( 1 ) | |
|
11 | ||
|
12 | # it is possible to change the time code frequency | |
|
13 | #RMAPPlugin0.changeTimecodeFrequency(2) |
@@ -0,0 +1,12 | |||
|
1 | # LOAD FSW USING LINK 1 | |
|
2 | SpwPlugin0.StarDundeeSelectLinkNumber( 2 ) | |
|
3 | ||
|
4 | dsu3plugin0.openFile("/opt/DEV_PLE/timegen-qt/bin/timegen") | |
|
5 | dsu3plugin0.loadFile() | |
|
6 | ||
|
7 | dsu3plugin0.run() | |
|
8 | ||
|
9 | # START SENDING TIMECODES AT 1 Hz | |
|
10 | SpwPlugin0.StarDundeeStartTimecodes( 1 ) | |
|
11 | ||
|
12 | SpwPlugin0.StarDundeeSelectLinkNumber( 1 ) |
@@ -0,0 +1,29 | |||
|
1 | #!/usr/bin/lppmon -e | |
|
2 | ||
|
3 | import time | |
|
4 | ||
|
5 | proxy.loadSysDriver("SpwPlugin","SpwPlugin0") | |
|
6 | SpwPlugin0.selectBridge("STAR-Dundee Spw USB Brick") | |
|
7 | ||
|
8 | proxy.loadSysDriverToParent("dsu3plugin","SpwPlugin0") | |
|
9 | proxy.loadSysDriverToParent("LFRControlPlugin","SpwPlugin0") | |
|
10 | ||
|
11 | availableBrickCount = SpwPlugin0.StarDundeeGetAvailableBrickCount() | |
|
12 | print "availableBrickCount = ", availableBrickCount | |
|
13 | ||
|
14 | SpwPlugin0.StarDundeeSelectBrick(1) | |
|
15 | SpwPlugin0.StarDundeeSetBrickAsARouter(1) | |
|
16 | SpwPlugin0.connectBridge() | |
|
17 | ||
|
18 | #SpwPlugin0.TCPServerSetIP("127.0.0.1") | |
|
19 | SpwPlugin0.TCPServerConnect() | |
|
20 | ||
|
21 | #LFRControlPlugin0.SetSpwServerIP(129,104,27,164) | |
|
22 | LFRControlPlugin0.TCPServerConnect() | |
|
23 | ||
|
24 | dsu3plugin0.openFile("/opt/DEV_PLE/FSW-qt/bin/fsw") | |
|
25 | dsu3plugin0.loadFile() | |
|
26 | dsu3plugin0.run() | |
|
27 | ||
|
28 | LFRControlPlugin0.TMEchoBridgeOpenPort() | |
|
29 |
@@ -10,6 +10,7 tests/*.err | |||
|
10 | 10 | doc |
|
11 | 11 | *.srec |
|
12 | 12 | FSW-qt/bin/fsw |
|
13 | timegen-qt/bin/timegen | |
|
13 | 14 | src/LFR_basic-parameters |
|
14 | 15 | *.pro.user.* |
|
15 | 16 | FSW-qt/bin/spectralmatrix/asm_f0_test_20140403_case1.txt |
@@ -1,2 +1,2 | |||
|
1 | 1 | a586fe639ac179e95bdc150ebdbab0312f31dc30 LFR_basic-parameters |
|
2 | be0dc1c1876987307ddfc0fb47044f6d41815866 header/lfr_common_headers | |
|
2 | 611fe904e4b4e05736a8a618c561980d10bceead header/lfr_common_headers |
@@ -12,7 +12,7 SWVERSION=-1-0 | |||
|
12 | 12 | DEFINES += SW_VERSION_N1=2 # major |
|
13 | 13 | DEFINES += SW_VERSION_N2=0 # minor |
|
14 | 14 | DEFINES += SW_VERSION_N3=2 # patch |
|
15 |
DEFINES += SW_VERSION_N4= |
|
|
15 | DEFINES += SW_VERSION_N4=3 # internal | |
|
16 | 16 | |
|
17 | 17 | # <GCOV> |
|
18 | 18 | #QMAKE_CFLAGS_RELEASE += -fprofile-arcs -ftest-coverage |
@@ -660,7 +660,7 void timecode_irq_handler( void *pDev, v | |||
|
660 | 660 | |
|
661 | 661 | grspwPtr = (unsigned int *) (REGS_ADDR_GRSPW + APB_OFFSET_GRSPW_TIME_REGISTER); |
|
662 | 662 | |
|
663 |
housekeeping_packet.hk_lfr_dpu_spw_last_timc = (unsigned char) (grspwPtr[0] & 0x |
|
|
663 | housekeeping_packet.hk_lfr_dpu_spw_last_timc = (unsigned char) (grspwPtr[0] & 0xff); // [11 1111] | |
|
664 | 664 | |
|
665 | 665 | // update the number of valid timecodes that have been received |
|
666 | 666 | if (housekeeping_packet.hk_lfr_dpu_spw_tick_out_cnt == 255) |
@@ -426,10 +426,12 int check_transition_date( unsigned int | |||
|
426 | 426 | { |
|
427 | 427 | localCoarseTime = time_management_regs->coarse_time & 0x7fffffff; |
|
428 | 428 | |
|
429 | PRINTF2("localTime = %x, transitionTime = %x\n", localCoarseTime, transitionCoarseTime) | |
|
430 | ||
|
429 | 431 | if ( transitionCoarseTime <= localCoarseTime ) // SSS-CP-EQS-322 |
|
430 | 432 | { |
|
431 | 433 | status = LFR_DEFAULT; |
|
432 |
PRINTF |
|
|
434 | PRINTF("ERR *** in check_transition_date *** transitionCoarseTime <= localCoarseTime\n") | |
|
433 | 435 | } |
|
434 | 436 | |
|
435 | 437 | if (status == LFR_SUCCESSFUL) |
@@ -768,7 +770,6 void launch_waveform_picker( unsigned ch | |||
|
768 | 770 | waveform_picker_regs->start_date = transitionCoarseTime; |
|
769 | 771 | } |
|
770 | 772 | |
|
771 | PRINTF1("commutation coarse time = %x\n", transitionCoarseTime) | |
|
772 | 773 | } |
|
773 | 774 | |
|
774 | 775 | void launch_spectral_matrix( void ) |
@@ -1294,7 +1294,7 void set_wfp_delta_f0_f0_2( void ) | |||
|
1294 | 1294 | delta_f0_in_float =nb_samples_per_snapshot / 2. * ( 1. / 256. - 1. / 24576.) * 256.; |
|
1295 | 1295 | |
|
1296 | 1296 | waveform_picker_regs->delta_f0 = delta_snapshot - floor( delta_f0_in_float ); |
|
1297 |
waveform_picker_regs->delta_f0_2 = 0x |
|
|
1297 | waveform_picker_regs->delta_f0_2 = 0x30; // 48 = 11 0000, max 7 bits | |
|
1298 | 1298 | } |
|
1299 | 1299 | |
|
1300 | 1300 | void set_wfp_delta_f1( void ) |
@@ -615,6 +615,8 void timecode_irq_handler( void *pDev, v | |||
|
615 | 615 | { |
|
616 | 616 | struct grgpio_regs_str *grgpio_regs = (struct grgpio_regs_str *) REGS_ADDR_GRGPIO; |
|
617 | 617 | |
|
618 | incrementLocalCoarseTime(); | |
|
619 | ||
|
618 | 620 | //******* |
|
619 | 621 | // GPIO 2 |
|
620 | 622 | if ( get_transitionCoarseTime() == getLocalCoarseTime() ) |
@@ -659,6 +661,7 rtems_task updt_task(rtems_task_argument | |||
|
659 | 661 | rtems_event_set event_out; |
|
660 | 662 | rtems_status_code status; |
|
661 | 663 | rtems_id queue_id; |
|
664 | unsigned int coarseTimeToSend; | |
|
662 | 665 | |
|
663 | 666 | Packet_TC_LFR_UPDATE_TIME_WITH_HEADER_t update_time_packet; |
|
664 | 667 | |
@@ -692,9 +695,9 rtems_task updt_task(rtems_task_argument | |||
|
692 | 695 | while(true){ |
|
693 | 696 | rtems_event_receive(RTEMS_EVENT_0, RTEMS_WAIT | RTEMS_EVENT_ANY, RTEMS_NO_TIMEOUT, &event_out); // wait for an SPW_LINKERR_EVENT |
|
694 | 697 | |
|
695 |
|
|
|
696 |
updateTimePacket( |
|
|
697 |
printf("UPDT will send %x as coarse time in 700 ms\n", |
|
|
698 | coarseTimeToSend = getLocalCoarseTime() + 1; | |
|
699 | updateTimePacket( coarseTimeToSend, &update_time_packet); | |
|
700 | printf("UPDT will send %x as coarse time in 700 ms\n", coarseTimeToSend); | |
|
698 | 701 | |
|
699 | 702 | rtems_task_wake_after( 70 ); // 70 => 700 ms |
|
700 | 703 |
@@ -141,14 +141,16 int action_disable_calibration(ccsdsTele | |||
|
141 | 141 | int action_update_time(ccsdsTelecommandPacket_t *TC) |
|
142 | 142 | { |
|
143 | 143 | unsigned int incomingCoarseTime; |
|
144 | unsigned int currentLocalCoarseTime; | |
|
144 | 145 | |
|
145 | 146 | incomingCoarseTime = (TC->dataAndCRC[0] << 24) |
|
146 | 147 | + (TC->dataAndCRC[1] << 16) |
|
147 | 148 | + (TC->dataAndCRC[2] << 8) |
|
148 | 149 | + TC->dataAndCRC[3]; |
|
149 | 150 | |
|
151 | currentLocalCoarseTime = getLocalCoarseTime(); | |
|
150 | 152 | setLocalCoarseTime( incomingCoarseTime ); |
|
151 | printf( "localCoarseTime set to: %x\n", getLocalCoarseTime() ); | |
|
153 | printf( "currentLocalCoarseTime = %x, localCoarseTime set to: %x\n", currentLocalCoarseTime, getLocalCoarseTime() ); | |
|
152 | 154 | |
|
153 | 155 | return LFR_SUCCESSFUL; |
|
154 | 156 | } |
@@ -11,7 +11,7 SWVERSION=-1-0 | |||
|
11 | 11 | DEFINES += SW_VERSION_N1=0 # major |
|
12 | 12 | DEFINES += SW_VERSION_N2=0 # minor |
|
13 | 13 | DEFINES += SW_VERSION_N3=0 # patch |
|
14 |
DEFINES += SW_VERSION_N4= |
|
|
14 | DEFINES += SW_VERSION_N4=2 # internal | |
|
15 | 15 | |
|
16 | 16 | contains( CONFIG, debug_tch ) { |
|
17 | 17 | DEFINES += DEBUG_TCH |
General Comments 0
You need to be logged in to leave comments.
Login now