#include <iostream>
#include "stdio.h"
#include "sensor_datatypes.h"
#include "SensorImu.hpp"
using namespace std;
sensor_imu si[10];
int32_t max_c=0;
int32_t return_c[100];
int main(void)
{
Sensor::Imu imu;
cout<<si[0].temperature<<endl;
imu.Initialize(SENSOR_CLOCK_SYNC_TYPE_REALTIME);
cout<<imu.GetData(si,max_c,return_c)<<endl;
cout<<"max_C is :"<<max_c<<endl;
cout<<si[0].temperature<<endl;
cout<<sizeof(si[0])<<endl;
cout<<imu.Terminate()<<endl;
printf("This is a test!\n");
cout<<"This is out from C++!"<<endl;
return 0;
}
05-24
05-24
04-18
08-28