stratux
stratux copied to clipboard
Occasional panic in ahrs_simple.go
-
Stratux version: compiled from Source
-
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 checked
ahrs_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..