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:
- 38:d8d410d1662c
- Parent:
- 37:3e87bf647c68
- Child:
- 39:9014c5236864
--- a/main.cpp Thu May 21 12:54:35 2015 +0200
+++ b/main.cpp Thu May 21 13:05:49 2015 +0200
@@ -381,6 +381,18 @@
}
}
+static void printIntroMessage(void)
+{
+ pc.printf("\n\n\n\n\n");
+ pc.printf("MTi-1 series embedded example firmware.\n");
+}
+
+static void printUsageInstructions(void)
+{
+ pc.printf("\n");
+ pc.printf("Press 'm' to start measuring and 'c' to return to config mode.\n");
+}
+
int main(void)
{
XbusParserCallback xbusCallback = {};
@@ -390,9 +402,12 @@
xbusParser = XbusParser_create(&xbusCallback);
configureSerialPorts();
+
+ printIntroMessage();
wakeupMotionTracker();
if (configureMotionTracker())
{
+ printUsageInstructions();
for (;;)
{
while (pc.readable())

Xsens MTi 1-series