HCKalmanFilter
HCKalmanFilter copied to clipboard
Expression was too complex
Hey Guys,
HCKalmanFilter iOS is not compiling and giving the error. Please see the screenshot.

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))]
])