Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of workinQM_10thDec by
Diff: BCN.cpp
- Revision:
- 97:36a91c432cb1
- Parent:
- 94:17172893d231
- Child:
- 98:321edb143f26
--- a/BCN.cpp Wed Jan 25 09:09:43 2017 +0000 +++ b/BCN.cpp Fri Feb 10 19:12:15 2017 +0000 @@ -63,13 +63,13 @@ //1st 0-7 call sign //SHORT_HK_data[0] _ SHORT_HK_data[6] - SHORT_HK_data[0] = 0xF3; - SHORT_HK_data[1] = 0x02; - SHORT_HK_data[2] = 0xFA; - SHORT_HK_data[3] = 0xC6; - SHORT_HK_data[4] = 0xD4; - SHORT_HK_data[5] = 0x28; - SHORT_HK_data[6] = 0x8A; + SHORT_HK_data[0] = 0x1;// ;0xF3; + SHORT_HK_data[1] = 0x1;//0x02; + SHORT_HK_data[2] = 0x1;//0xFA; + SHORT_HK_data[3] = 0x1;//0xC6; + SHORT_HK_data[4] = 0x1;//0xD4; + SHORT_HK_data[5] = 0x1;//0x28; + SHORT_HK_data[6] = 0x1;//0x8A; SHORT_HK_data[7] = quant_data.voltage_quant[15]/10; SHORT_HK_data[7] = (SHORT_HK_data[7] & 0xF0) | (quant_data.current_quant[1]>>4); @@ -95,8 +95,12 @@ SHORT_HK_data[12] = (SHORT_HK_data[12]<<3) | (days>>2); SHORT_HK_data[13] = (days<<6) | (mins&0x3F); + //change it daaa.!! + for(int ib = 7;ib<14;ib++) + SHORT_HK_data[ib]=0x1; + SHORT_HK_data[14] = crc8_short(); - + #if short_bcn_print pc_bcn.printf("\n\rShort BCN data:\n"); for(int ib = 0;ib<15;ib++) pc_bcn.printf("\n\r%02x",SHORT_HK_data[ib]);