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
reporter.h
00001 #pragma once 00002 00003 #include "mbed.h" 00004 #include "M3Dpi.h" 00005 00006 // TODO: only report if value is different? 00007 class Reporter 00008 { 00009 protected: 00010 mbed::Stream* out; 00011 const char* id; 00012 public: 00013 Reporter(mbed::Stream* _out, const char _id[]); 00014 virtual void time(time_t seconds) = 0; 00015 virtual void distance(m3dpi::Distance distance) = 0; 00016 virtual void acceleration(m3dpi::Acceleration acc) = 0; 00017 virtual void direction(m3dpi::Direction direction) = 0; 00018 virtual void rotation(m3dpi::Rotation rotation) = 0; 00019 };
Generated on Wed Jul 20 2022 08:05:50 by
1.7.2