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
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