Coder Social home page Coder Social logo

Comments (4)

dwcaress avatar dwcaress commented on September 4, 2024

from mb-system.

amarburg avatar amarburg commented on September 4, 2024

Hi Dave,

I've posted two test snippets to Val's Python module which contain version 0 MWC packets -- the {Hi,Low}ResPhase files here: https://github.com/valschmidt/kmall/tree/master/data

They don't segfault, but:

> mbinfo -VVVVV -I data/0004_20200917_014959_HiResPhase_subset.kmall 2>&1 | grep -n -A6  "MWC receiver beam data"

45421:dbg5       #MWC receiver beam data  0/256:
45422-dbg5       tiltAngleReTx_deg:                     30.000000
45423-dbg5       startRangeSampleNum:                   0
45424-dbg5       detectedRangeInSamples:                0
45425-dbg5       beamTxSectorNum:                       0
45426-dbg5       numSampleData:                         3596
45427-dbg5       detectedRangeInSamplesHighResolution:  0.000000
--
45828:dbg5       #MWC receiver beam data  1/256:
45829-dbg5       tiltAngleReTx_deg:                     29.764708
45830-dbg5       startRangeSampleNum:                   0
45831-dbg5       detectedRangeInSamples:                0
45832-dbg5       beamTxSectorNum:                       0
45833-dbg5       numSampleData:                         3596
45834-dbg5       detectedRangeInSamplesHighResolution:  -0.000000
--
46235:dbg5       #MWC receiver beam data  2/256:
46236-dbg5       tiltAngleReTx_deg:                     0.000000
46237-dbg5       startRangeSampleNum:                   0
46238-dbg5       detectedRangeInSamples:                3596
46239-dbg5       beamTxSectorNum:                       32896
46240-dbg5       numSampleData:                         32896
46241-dbg5       detectedRangeInSamplesHighResolution:  -0.000000
--
49572:dbg5       #MWC receiver beam data  3/256:
49573-dbg5       tiltAngleReTx_deg:                     -7100336854532096.000000
49574-dbg5       startRangeSampleNum:                   56805
49575-dbg5       detectedRangeInSamples:                57056
49576-dbg5       beamTxSectorNum:                       57816
49577-dbg5       numSampleData:                         55771
49578-dbg5       detectedRangeInSamplesHighResolution:  -1831.182129
--
55197:dbg5       #MWC receiver beam data  4/256:
55198-dbg5       tiltAngleReTx_deg:                     8520064000.000000
55199-dbg5       startRangeSampleNum:                   25367
55200-dbg5       detectedRangeInSamples:                59671
55201-dbg5       beamTxSectorNum:                       12551
55202-dbg5       numSampleData:                         29961
55203-dbg5       detectedRangeInSamplesHighResolution:  -0.000000

...

The tiltAngleReTx_deg field is clearly going off the rails. and the other fields are random.

If the suspect line of code is commented out:

> mbinfo -VVVVV -I data/0004_20200917_014959_HiResPhase_subset.kmall 2>&1 | grep -n -A6  "MWC receiver beam data"

45421:dbg5       #MWC receiver beam data  0/256:
45422-dbg5       tiltAngleReTx_deg:                     30.000000
45423-dbg5       startRangeSampleNum:                   0
45424-dbg5       detectedRangeInSamples:                0
45425-dbg5       beamTxSectorNum:                       0
45426-dbg5       numSampleData:                         3596
45427-dbg5       detectedRangeInSamplesHighResolution:  0.000000
--
45828:dbg5       #MWC receiver beam data  1/256:
45829-dbg5       tiltAngleReTx_deg:                     29.764708
45830-dbg5       startRangeSampleNum:                   0
45831-dbg5       detectedRangeInSamples:                0
45832-dbg5       beamTxSectorNum:                       0
45833-dbg5       numSampleData:                         3596
45834-dbg5       detectedRangeInSamplesHighResolution:  0.000000
--
46235:dbg5       #MWC receiver beam data  2/256:
46236-dbg5       tiltAngleReTx_deg:                     29.529415
46237-dbg5       startRangeSampleNum:                   0
46238-dbg5       detectedRangeInSamples:                0
46239-dbg5       beamTxSectorNum:                       0
46240-dbg5       numSampleData:                         3596
46241-dbg5       detectedRangeInSamplesHighResolution:  0.000000
--
46642:dbg5       #MWC receiver beam data  3/256:
46643-dbg5       tiltAngleReTx_deg:                     29.294121
46644-dbg5       startRangeSampleNum:                   0
46645-dbg5       detectedRangeInSamples:                0
46646-dbg5       beamTxSectorNum:                       0
46647-dbg5       numSampleData:                         3596
46648-dbg5       detectedRangeInSamplesHighResolution:  0.000000
--
47049:dbg5       #MWC receiver beam data  4/256:
47050-dbg5       tiltAngleReTx_deg:                     29.058828
47051-dbg5       startRangeSampleNum:                   0
47052-dbg5       detectedRangeInSamples:                0
47053-dbg5       beamTxSectorNum:                       0
47054-dbg5       numSampleData:                         3596
47055-dbg5       detectedRangeInSamplesHighResolution:  0.000000

...

from mb-system.

dwcaress avatar dwcaress commented on September 4, 2024

from mb-system.

amarburg avatar amarburg commented on September 4, 2024

Dave, cheers. Just confirming that HEAD of master is now working with my data.

from mb-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.