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: data_dumper.cpp
- Revision:
- 2:d9745be6c253
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data_dumper.cpp Thu Aug 04 15:14:29 2022 -0400 @@ -0,0 +1,14 @@ +#include "data_dumper.h" +#include <algorithm> + +void dump_data(std::vector<std::tuple<int32_t, uint32_t>>& data) { + for (auto& steps_tau_tuple: data) { + printf("%d,%d\n", + std::get<0>(steps_tau_tuple), + std::get<1>(steps_tau_tuple)); + } +}; + +void clear_data(std::vector<std::tuple<int32_t, uint32_t>>& data) { + data.clear(); +}; \ No newline at end of file