UvA NetCentric Computing listener
Dependencies: AndroidAccessory Controls HBridge MotorController mbed
Fork of uva_nc by
Diff: NetCentricApp.h
- Revision:
- 3:0229ad4f2db1
- Parent:
- 1:3cde55629b1d
- Child:
- 6:b5072fb695f2
--- a/NetCentricApp.h Wed Jan 06 13:33:14 2016 +0000 +++ b/NetCentricApp.h Thu Jan 07 09:08:48 2016 +0000 @@ -4,6 +4,7 @@ #include "AndroidAccessory.h" #include "mbed.h" #include "MbedCommand.h" +#include "PcControls.h" #define READ_BUFF 2048 #define WRITE_BUFF 2048 @@ -18,14 +19,15 @@ class NetCentricApp : private AndroidAccessory { public: - NetCentricApp(): + NetCentricApp(MotorControlsPc &motorControlsPc): AndroidAccessory(READ_BUFF, WRITE_BUFF, "ARM", "mbed", "mbed - NetCentric", "0.2", "http://www.uva.nl", - "0000000012345678") + "0000000012345678"), + motorControlsPc ( motorControlsPc ) {}; protected: @@ -45,6 +47,8 @@ MbedResponse *avgCommand(MbedRequest *request); MbedResponse *ledCommand(MbedRequest *request); MbedResponse *motorCommand(MbedRequest *request); + + MotorControlsPc &motorControlsPc; }; #endif \ No newline at end of file