Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
hi guys, i need your help i am trying to integrate Gyroscope ITG3200 with mbed and send the data using xbeepro. i used the code from the cookbook for the ITG3200 and add little xbeepro code to send the data. this is the code
ITG3200
#include "ITG3200.h" #include "xbee.h" Serial pc(USBTX, USBRX); ITG3200 gyro(p27, p28); xbee xbee1(p9,p10,p11); //Initalise xbee_lib int main() { pc.printf("Now starting ITG-3200 test...\n"); //Set highest bandwidth. gyro.setLpBandwidth(LPFBW_42HZ); while (1) { //Arbitrary wait for printf clarity. wait(1); pc.printf("%i\n", gyro.getGyroX()); xbee1.SendData(gyro.getGyroX()); } }when i compiled this code, there was an error that said "Argument of type "int" is incompatible with parameter of type "char *"" in file "/main.cpp", Line: 20, Col: 1" that refer to "xbee1.SendData(gyro.getGyroX()". is there anyone that can solve my problem?
thank you