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: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/CommandParser/cmd.cpp
- Revision:
- 150:4db35c8234b4
- Parent:
- 149:950c90425f7c
- Child:
- 160:201b88aa08c1
--- a/src/CommandParser/cmd.cpp Fri Sep 30 12:22:20 2016 +0000
+++ b/src/CommandParser/cmd.cpp Fri Sep 30 13:35:28 2016 +0000
@@ -999,8 +999,9 @@
float value = atof( argv[2] );
if ( argc < 3 ) {
- printf("\rusage: simin <input> <value> <low> <hi> <step>\r\n");
- printf("\rexample: simin i_tra01 100 90 110 5\r\n");
+ printf("\rusage: simin <input> <value> <low> <hi> <up_step> <down_step>\r\n");
+ printf("\rexample: simin i_tra01 100 94 106 1 .25\r\n");
+ printf("\rexample: simin i_bdcond01 2000 1990 2006 .25 1\r\n");
return;
}
@@ -1015,7 +1016,9 @@
}
SimulateInputMap[argv[1]].min = atof(argv[3]);
SimulateInputMap[argv[1]].max = atof(argv[4]);
- SimulateInputMap[argv[1]].step = atof(argv[5]);
+ SimulateInputMap[argv[1]].up_step = atof(argv[5]);
+ SimulateInputMap[argv[1]].down_step = atof(argv[6]);
+
}
@@ -1062,6 +1065,6 @@
{
std::map<std::string, SimulateInput>::iterator iter;
for (iter = SimulateInputMap.begin(); iter != SimulateInputMap.end(); ++iter) {
- printf("simulated input=%s, min=%2.2f, max=%2.2f, start_value=%2.2f, step=%2.2f\r\n",iter->first.c_str(), SimulateInputMap[iter->first].min, SimulateInputMap[iter->first].max, SimulateInputMap[iter->first].start_value, SimulateInputMap[iter->first].step);
+ printf("simulated input=%s, min=%2.2f, max=%2.2f, start_value=%2.2f, up_step=%2.2f, down_step=%2.2f\r\n",iter->first.c_str(), SimulateInputMap[iter->first].min, SimulateInputMap[iter->first].max, SimulateInputMap[iter->first].start_value, SimulateInputMap[iter->first].up_step, SimulateInputMap[iter->first].down_step);
}
}
\ No newline at end of file
