m3Dpi robot, based on the Pololu 3pi and m3pi. m3Dpi has multiple distance sensors, gyroscope, compass and accelerometer sensor to be fully aware of its environment. With the addition of xbee or nrf24n01 module it has wireless communication capabilities.
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