Не могу подключить эл.компас HMC8553L модуль GY-273. Собрано пока на макетке провода короткие.
1. При
define FEATURE_AZ_POSITION_HMC5883L // HMC5883L digital compass supportкомпилируется без ошибок, но не работает.
2. При
#define FEATURE_AZ_POSITION_HMC5883L_USING_JARZEBSKI_LIBR ARY // HMC5883L digital compass support using Jarzebski library at https://github.com/jarzebski/Arduino-HMC5883L не компилируется, валится куча ошибок
C:\Users\boss\Documents\Arduino\k3ng_rotator_controller\k3ng_rotator_controller.ino: In function 'void initialize_peripherals()':
C:\Users\boss\Documents\Arduino\k3ng_rotator_controller\k3ng_rotator_controller.ino:11054:27: error: no matching function for call to 'HMC5883L::setOffset(int, int)'
compass.setOffset(0, 0);
^
In file included from C:\Users\boss\Documents\Arduino\k3ng_rotator_controller\k3ng_rotator_controller.ino:1161:0:
c:\Users\boss\Documents\Arduino\libraries\Arduino-HMC5883L-dev/HMC5883L.h:102:8: note: candidate: void HMC5883L::setOffset(int, int, int)
void setOffset(int xo, int yo, int zo);
^~~~~~~~~
c:\Users\boss\Documents\Arduino\libraries\Arduino-HMC5883L-dev/HMC5883L.h:102:8: note: candidate expects 3 arguments, 2 provided
exit status 1
Compilation error: no matching function for call to 'HMC5883L::setOffset(int, int)'
Какие данные он хочет с эту строку
compass.setOffset(0, 0);Запустил калибровку, но дальше просто в ступоре , цифры бегут по ком порту, что с этим делать?
Хотелось бы запустить по первому варианту, точности мне хватит.