HCKalmanFilter icon indicating copy to clipboard operation
HCKalmanFilter copied to clipboard

Expression was too complex

Open rohit-aq opened this issue 7 years ago • 1 comments

Hey Guys,

HCKalmanFilter iOS is not compiling and giving the error. Please see the screenshot.

too complex equation

rohit-aq avatar Jul 03 '18 07:07 rohit-aq

timeInterval is original Double, it's no need to format it to Double again, I can remove the warnings with the following:

Qt.setMatrix(matrix: [
            [sigma*(pow(timeInterval, 4.0)/4.0),
             sigma*(pow(timeInterval, 3.0)/2.0),0,0],
            
            [sigma*(pow(timeInterval, 3.0)/2.0),
             sigma*(pow(timeInterval, 2.0)),0,0],
            
            [0,0,sigma*(pow(timeInterval, 4.0)/4.0),
             sigma*(pow(timeInterval, 3.0)/2.0)],
            
            [0,0,sigma*(pow(timeInterval, 3.0)/2.0),
             sigma*(pow(timeInterval, 2.0))]
            ])

jdleung avatar Apr 11 '19 01:04 jdleung