kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Rebase demodulators, fixing RS41 battery issue.
rodzic
b876c38bf3
commit
062c89a1be
Plik diff jest za duży
Load Diff
|
@ -542,9 +542,16 @@ static int print_pos(gpx_t *gpx, int bcOK, int csOK) {
|
|||
if (!err2) {
|
||||
fprintf(stdout, " vH: "col_GPSvel"%.1f"col_TXT" D: "col_GPSvel"%.1f"col_TXT" vV: "col_GPSvel"%.1f"col_TXT" ", gpx->vH, gpx->vD, gpx->vV);
|
||||
}
|
||||
if (gpx->option.vbs >= 3 && bcOK) {
|
||||
ui32_t byte = (gpx->frame_bytes[0x14]<<8) | gpx->frame_bytes[0x13];
|
||||
fprintf(stdout, " ( %04u)", (byte>>2)&0x1FFF);
|
||||
if (gpx->option.vbs >= 3 && (bcOK || csOK)) { // SN
|
||||
ui8_t b0 = gpx->frame_bytes[0x12];
|
||||
ui32_t s2 = (gpx->frame_bytes[0x14]<<8) | gpx->frame_bytes[0x13];
|
||||
ui8_t ym = b0 & 0x7F; // #{0x0,..,0x77}=120=10*12
|
||||
ui8_t y = ym / 12;
|
||||
ui8_t m = (ym % 12)+1; // there is b0=0x69<0x80 from 2018-09-19 ...
|
||||
fprintf(stdout, " (%u%02u", y, m); // more samples needed
|
||||
fprintf(stdout, " _ "); // (b0>>7)+1? (s2&0x3)+2?
|
||||
fprintf(stdout, "_"); // ? (s2>>13)&0x3 ?? (s2&0x3)?
|
||||
fprintf(stdout, "%04u)", (s2>>2)&0x1FFF);
|
||||
}
|
||||
if (gpx->option.vbs >= 2) {
|
||||
fprintf(stdout, " # ");
|
||||
|
|
|
@ -369,14 +369,14 @@ static int get_BattVolts(gpx_t *gpx, int ofs) {
|
|||
int i;
|
||||
unsigned byte;
|
||||
ui8_t batt_bytes[2];
|
||||
float batt_volts;
|
||||
ui16_t batt_volts; // signed voltage?
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
byte = gpx->frame[pos_BattVolts+ofs + i];
|
||||
batt_bytes[i] = byte;
|
||||
}
|
||||
|
||||
batt_volts = (float)(batt_bytes[0] + (batt_bytes[1] << 8));
|
||||
// 2 bytes? V > 25.5 ?
|
||||
batt_volts = batt_bytes[0]; // + (batt_bytes[1] << 8);
|
||||
gpx->batt = batt_volts/10.0;
|
||||
|
||||
return 0;
|
||||
|
@ -895,10 +895,10 @@ static int get_Calconf(gpx_t *gpx, int out, int ofs) {
|
|||
byte = gpx->frame[pos_CalData+ofs+1+i];
|
||||
fprintf(stdout, "%02x ", byte);
|
||||
}
|
||||
/*
|
||||
/*
|
||||
if (err == 0) fprintf(stdout, "[OK]");
|
||||
else fprintf(stdout, "[NO]");
|
||||
*/
|
||||
*/
|
||||
fprintf(stdout, " ");
|
||||
}
|
||||
|
||||
|
@ -1160,7 +1160,7 @@ static int prn_sat3(gpx_t *gpx, int ofs) {
|
|||
pDOP = gpx->frame[pos_pDOP+ofs]/10.0; if (gpx->frame[pos_pDOP+ofs] == 0xFF) pDOP = -1.0;
|
||||
fprintf(stdout, "numSatsFix: %2d sAcc: %.1f pDOP: %.1f\n", numSV, sAcc, pDOP);
|
||||
|
||||
/*
|
||||
/*
|
||||
fprintf(stdout, "CRC: ");
|
||||
fprintf(stdout, " %04X", pck_GPS1);
|
||||
if (check_CRC(gpx, pos_GPS1+ofs, pck_GPS1)==0) fprintf(stdout, "[OK]"); else fprintf(stdout, "[NO]");
|
||||
|
@ -1173,7 +1173,7 @@ static int prn_sat3(gpx_t *gpx, int ofs) {
|
|||
//fprintf(stdout, "[%+d]", check_CRC(gpx, pos_GPS3, pck_GPS3));
|
||||
|
||||
fprintf(stdout, "\n");
|
||||
*/
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -135,7 +135,7 @@ static rsheader_t rs_hdr[Nrs] = {
|
|||
{ 2500, 0, 0, dfm_header, 1.0, 0.0, 0.65, 2, NULL, "DFM9", tn_DFM, 0, 0, 0.0}, // DFM6: -2 ?
|
||||
{ 4800, 0, 0, rs41_header, 0.5, 0.0, 0.70, 2, NULL, "RS41", tn_RS41, 0, 0, 0.0},
|
||||
{ 4800, 0, 0, rs92_header, 0.5, 0.0, 0.70, 3, NULL, "RS92", tn_RS92, 0, 0, 0.0}, // RS92NGP: 1680/400=4.2
|
||||
{ 4800, 0, 0, lms6_header, 1.0, 0.0, 0.70, 2, NULL, "LMS6", tn_LMS6, 0, 0, 0.0}, // lmsX: 7?
|
||||
{ 4800, 0, 0, lms6_header, 1.0, 0.0, 0.60, 8, NULL, "LMS6", tn_LMS6, 0, 0, 0.0}, // lmsX: 7?
|
||||
{ 9616, 0, 0, mk2a_header, 1.0, 0.0, 0.70, 2, NULL, "MK2LMS", tn_MK2LMS, 1, 2, 0.0}, // Mk2a/LMS6-1680 , --IQ: decimate > 170kHz ...
|
||||
{ 9616, 0, 0, m10_header, 1.0, 0.0, 0.76, 2, NULL, "M10", tn_M10, 1, 1, 0.0}, // M10.tn=5 (baud=9616) , M20.tn=6 (baud=9600)
|
||||
{ 2400, 0, 0, meisei_header, 1.0, 0.0, 0.70, 2, NULL, "MEISEI", tn_MEISEI, 0, 1, 0.0},
|
||||
|
|
Ładowanie…
Reference in New Issue