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: con_exp.cpp
- Revision:
- 2:d9745be6c253
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/con_exp.cpp Thu Aug 04 15:14:29 2022 -0400 @@ -0,0 +1,23 @@ +#include <cstdint> +#include <cstdio> +#include <mbed.h> +#include "con_exp.h" +#include "capsense.h" +#include "stepper.h" + +bool ContinuousExperiment::is_done() { + return state == DONE; +} + +std::vector<std::tuple<int32_t, uint32_t>>& ContinuousExperiment::report() { + return data; +} + +void ContinuousExperiment::start() { + state = MOVING; + move_counter = delta_steps; +} + +void ContinuousExperiment::reset() { + state = IDLE; +} \ No newline at end of file