Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed Xbus
Fork of MTi-1_example by
Diff: main.cpp
- Revision:
- 39:9014c5236864
- Parent:
- 38:d8d410d1662c
- Child:
- 40:b77a8c10c76d
diff -r d8d410d1662c -r 9014c5236864 main.cpp
--- a/main.cpp Thu May 21 13:05:49 2015 +0200
+++ b/main.cpp Thu May 21 13:10:39 2015 +0200
@@ -105,23 +105,7 @@
switch (response->mid)
{
case XMID_GotoConfigAck:
- pc.printf("Device went to config mode\n");
- break;
-
- case XMID_DeviceId:
- pc.printf("Device ID: %08X\n", *(uint32_t*)response->data);
- break;
-
- case XMID_OutputConfig:
- {
- pc.printf("Output configuration\n");
- OutputConfiguration* conf = (OutputConfiguration*)response->data;
- for (int i = 0; i < response->length; ++i)
- {
- pc.printf("\t%s: %d Hz\n", XbusMessage_dataDescription(conf->dtype), conf->freq);
- ++conf;
- }
- }
+ pc.printf("Device went to config mode.\n");
break;
case XMID_Error:
@@ -161,14 +145,6 @@
case 'm':
sendCommand(XMID_GotoMeasurement);
break;
-
- case 'd':
- sendCommand(XMID_ReqDid);
- break;
-
- case 'o':
- sendCommand(XMID_ReqOutputConfig);
- break;
}
}

Xsens MTi 1-series