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

Committer:
sillevl
Date:
Wed Aug 30 11:54:19 2017 +0000
Revision:
17:b73fcdb828f3
Parent:
13:d6374484b953
demo distance sensors

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sillevl 7:9068fc754a0b 1 #pragma once
sillevl 7:9068fc754a0b 2
sillevl 11:ccb8653e285f 3 #include "reporter.h"
sillevl 7:9068fc754a0b 4 #include "MbedJSONValue.h"
sillevl 7:9068fc754a0b 5
sillevl 11:ccb8653e285f 6 class JsonReporter : public Reporter
sillevl 7:9068fc754a0b 7 {
sillevl 7:9068fc754a0b 8 public:
sillevl 13:d6374484b953 9 JsonReporter(mbed::Stream* _out, const char _id[]) : Reporter(_out, _id) {};
sillevl 11:ccb8653e285f 10
sillevl 11:ccb8653e285f 11 virtual void time(time_t seconds);
sillevl 11:ccb8653e285f 12 virtual void distance(m3dpi::Distance distance);
sillevl 11:ccb8653e285f 13 virtual void acceleration(m3dpi::Acceleration acc);
sillevl 11:ccb8653e285f 14 virtual void direction(m3dpi::Direction direction);
sillevl 11:ccb8653e285f 15 virtual void rotation(m3dpi::Rotation rotation);
sillevl 11:ccb8653e285f 16
sillevl 11:ccb8653e285f 17 protected:
sillevl 7:9068fc754a0b 18 MbedJSONValue* jsonFactory();
sillevl 7:9068fc754a0b 19 void print(MbedJSONValue* json);
sillevl 7:9068fc754a0b 20 };