17 #include "../../src/InertialSense.h" 21 static uint64_t dataCount;
22 printf(
"Data count: %" PRIu64
" \r", ++dataCount);
25 int main(
int argc,
char* argv[])
29 printf(
"Please pass the data log directory path (i.e. \"C:\\Users\\[username]\\Documents\\Inertial Sense\\Logs\\20180716_172323)\"\r\n");
38 if (!inertialSense.
Open(argv[1]))
40 std::cout <<
"Failed to open com port at " << argv[1] << std::endl;
52 std::cout <<
"Started logger..." << std::endl;
59 inertialSense.
Close();
int main(int argc, char *argv[])
bool SetLoggerEnabled(bool enable, const string &path=cISLogger::g_emptyString, cISLogger::eLogType logType=cISLogger::eLogType::LOGTYPE_DAT, uint64_t rmcPreset=RMC_PRESET_PPD_BITS, float maxDiskSpacePercent=0.5f, uint32_t maxFileSize=1024 *1024 *5, const string &subFolder=cISLogger::g_emptyString)
static eLogType ParseLogType(const string &logTypeString)
bool ControlCWasPressed()
USBInterfaceDescriptor data
bool Open(const char *port, int baudRate=IS_COM_BAUDRATE_DEFAULT, bool disableBroadcastsOnClose=false)
static void dataCallback(InertialSense *i, p_data_t *data, int pHandle)