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
jsonReporter.h
00001 #pragma once 00002 00003 #include "reporter.h" 00004 #include "MbedJSONValue.h" 00005 00006 class JsonReporter : public Reporter 00007 { 00008 public: 00009 JsonReporter(mbed::Stream* _out, const char _id[]) : Reporter(_out, _id) {}; 00010 00011 virtual void time(time_t seconds); 00012 virtual void distance(m3dpi::Distance distance); 00013 virtual void acceleration(m3dpi::Acceleration acc); 00014 virtual void direction(m3dpi::Direction direction); 00015 virtual void rotation(m3dpi::Rotation rotation); 00016 00017 protected: 00018 MbedJSONValue* jsonFactory(); 00019 void print(MbedJSONValue* json); 00020 };
Generated on Wed Jul 20 2022 08:05:50 by 1.7.2