stratux icon indicating copy to clipboard operation
stratux copied to clipboard

Occasional panic in ahrs_simple.go

Open rvt opened this issue 2 years ago • 0 comments

  1. Stratux version: compiled from Source

  2. Stratux config:

    SDR

    • [ ] single
    • [ ] dual

    GPS

    • [x] yes
    • [ ] no type:

    AHRS

    • [x] yes
    • [ ] no

    power source:

    usb cable:

Occasional panic in ahrs_simple.go

Under some situations it apparently possible that ``func MakeUnitVector(vec [3]float64) (res *[3]float64, err error) {}returns an error. see : https://github.com/b3nn0/goflying/blob/master/ahrs/ahrs_defs.go#L148 This condition is not checkedahrs_simple.go`

rotmat, err := MakeHardSoftRotationMatrix(*ha, [3]float64{1, 0, 0}, *he, *se)

Unfortunately I did not have time to dive deeper into it yet to understand what the exact condition is.. Pasted Graphic

rvt avatar Aug 14 '22 18:08 rvt