Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
omuni.h
00001 #ifndef omuni_H 00002 #define omuni_H 00003 #include "T_motor.h" 00004 #include "P_motor.h" 00005 #include "mbed.h" 00006 00007 #define PI 3.14159265359 00008 #define dataNum 5 00009 00010 class omuni{ 00011 private: 00012 I2C *i2c; 00013 P_motor m1,m2,m3; 00014 char RXData[dataNum]; 00015 int8_t map(int8_t in, int8_t inMin, int8_t inMax, int8_t outMin, int8_t outMax); 00016 00017 public: 00018 omuni(I2C* i2c_,int8_t addr1,int8_t addr2,int8_t addr3, double delta = 0.1); 00019 void out(char rxdata[dataNum],float L = 0.275); 00020 00021 }; 00022 #endif
Generated on Wed Jul 13 2022 13:40:53 by
1.7.2