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.
Diff: RTOS-Threads/src/Task3.cpp
- Revision:
- 33:f88a6ee18103
- Parent:
- 32:7a9be7761c46
- Child:
- 34:228d87c45151
--- a/RTOS-Threads/src/Task3.cpp Mon May 12 13:20:06 2014 +0000
+++ b/RTOS-Threads/src/Task3.cpp Mon May 12 13:49:43 2014 +0000
@@ -86,6 +86,7 @@
RCCommand[i] = constrainRCCommand(RCCommand[i]);
}
+ /* Telemetry output: */
if (box_demo) {
BT.printf("\nV%2.2f\n", voltageSense*VOLTAGE_SCALE);
BT.printf("\nA%3.2f\nT%2.2f\n", altimeter.Altitude_m(), altimeter.Temp_C());
@@ -97,6 +98,9 @@
//Timer
}
+// ========================
+// === Helper functions ===
+// ========================
int constrainRCCommand(int input)
{
if (input < 1000)