sfwa / TRICAL

Straightforward UKF-based scale and bias calibration for magnetometers (and other tri-axial field sensors).

Home Page:http://au.tono.my/log/20131213-trical-magnetometer-calibration.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make error on restrict pointer: need C99 mode

mvernacc opened this issue · comments

I got the following error when building:

error: expected ‘;’, ‘,’ or ‘)’ before ‘instance’
 void TRICAL_measurement_calibrate(TRICAL_instance_t *restrict instance,

I was able to fix this by including -std=c99 in the set(CMAKE_C_FLAGS string in CMakeLists.txt