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 Teach memory
Diff: teach.cpp
- Revision:
- 3:b22580585b9c
- Parent:
- 1:33fdaabcdeda
diff -r 6dc660d146b7 -r b22580585b9c teach.cpp --- a/teach.cpp Wed Apr 22 08:39:40 2020 +0000 +++ b/teach.cpp Mon Apr 27 05:07:00 2020 +0000 @@ -69,9 +69,11 @@ contr_sice(); } -void teach::save(void) -{ - //store data_vec to memory +void teach::save(string name) +{ tr_name = name; + store.ErstellenDatenblock(tr_name); + process(); + } void teach::stop(void) @@ -97,7 +99,9 @@ tempsum[1] = tempsum[1]/k; tempsum[2] = tempsum[2]/k; - // save startpoint to memory + float empty[3] = {0,0,1}; // status: 000 standart point + store.SpeichernPosition(tr_name,0,tempsum,empty,empty); // 001 start point + // 010 end point i = 0, k = 0, tempsum[0] = 0, tempsum[1] = 0, tempsum[2] = 0; // reset counters