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 com port and then optionally the log type as the only arguments (dat,sdat,csv,kml).\r\n");
38 if (!inertialSense.
Open(argv[1]))
40 std::cout <<
"Failed to open com port at " << argv[1] << std::endl;
65 std::cout <<
"Started logger..." << std::endl;
72 inertialSense.
Close();
void StopBroadcasts(bool allPorts=true)
int main(int argc, char *argv[])
static void dataCallback(InertialSense *i, p_data_t *data, int pHandle)
#define RMC_PRESET_INS_BITS
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)
void BroadcastBinaryDataRmcPreset(uint64_t rmcPreset=RMC_PRESET_INS_BITS, uint32_t rmcOptions=0)