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: m3Dpi mbed-rtos mbed MbedJSONValue
lib/reporter.h
- Committer:
- sillevl
- Date:
- 2017-08-30
- Revision:
- 17:b73fcdb828f3
- Parent:
- 13:d6374484b953
File content as of revision 17:b73fcdb828f3:
#pragma once
#include "mbed.h"
#include "M3Dpi.h"
// TODO: only report if value is different?
class Reporter
{
protected:
mbed::Stream* out;
const char* id;
public:
Reporter(mbed::Stream* _out, const char _id[]);
virtual void time(time_t seconds) = 0;
virtual void distance(m3dpi::Distance distance) = 0;
virtual void acceleration(m3dpi::Acceleration acc) = 0;
virtual void direction(m3dpi::Direction direction) = 0;
virtual void rotation(m3dpi::Rotation rotation) = 0;
};
