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
binaryReporter.h
00001 #pragma once 00002 00003 #include "reporter.h" 00004 00005 class BinaryReporter : public Reporter 00006 { 00007 static const char START = 0x02; 00008 void print(char* data, int size); 00009 00010 enum COMMAND { 00011 DISTANCE = 10, 00012 DIRECTION = 11, 00013 ROTATION = 13, 00014 ACCELERATION = 14 00015 }; 00016 00017 public: 00018 BinaryReporter(mbed::Stream* _out, const char _id[]) : Reporter(_out, _id) {}; 00019 00020 virtual void time(time_t seconds); 00021 virtual void distance(m3dpi::Distance distance); 00022 virtual void acceleration(m3dpi::Acceleration acc); 00023 virtual void direction(m3dpi::Direction direction); 00024 virtual void rotation(m3dpi::Rotation rotation); 00025 00026 00027 };
Generated on Wed Jul 20 2022 08:05:49 by
1.7.2