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.
Dependencies: Communication_Robot
Fork of BEAR_Protocol by
Diff: BEAR_Protocol.h
- Revision:
- 8:e1f43b1df0b5
- Parent:
- 5:6f30b4ea4020
- Child:
- 10:2398eeafa967
--- a/BEAR_Protocol.h Thu Jan 21 16:03:47 2016 +0000
+++ b/BEAR_Protocol.h Thu Jan 21 17:24:49 2016 +0000
@@ -26,24 +26,30 @@
uint8_t setUpMotorKd(uint8_t,float);
uint8_t setLowMotorKd(uint8_t,float);
//EEPROM
- uint8_t setMargin(uint8_t,float);
+ uint8_t setUpMargin(uint8_t,float);
+ uint8_t setLowMargin(uint8_t,float);
uint8_t setHeight(uint8_t,float);
uint8_t setWheelPos(uint8_t,float);
uint8_t setMagData(uint8_t,float,float,float,float,float,float);
uint8_t setOffset(uint8_t,float,float);
uint8_t setBodyLength(uint8_t,float);
- uint8_t setAngleRange(uint8_t,float,float);
+ uint8_t setUpAngleRange(uint8_t,float,float);
+ uint8_t setLowAngleRange(uint8_t,float,float);
// get Command
uint8_t getMotorPos(uint8_t,float*,float*);
uint8_t getUpMotorKpKiKd(uint8_t,float*,float*,float*);
uint8_t getLowMotorKpKiKd(uint8_t,float*,float*,float*);
//EEPROM
- uint8_t getMargin(uint8_t,float*);
+ uint8_t getUpMargin(uint8_t,float*);
+ uint8_t getLowMargin(uint8_t,float*);
uint8_t getHeight(uint8_t,float*);
uint8_t getWheelPos(uint8_t,float*);
uint8_t getMagData(uint8_t,float*,float*,float*,float*,float*,float*);
uint8_t getOffset(uint8_t,float*,float*);
uint8_t getBodyLength(uint8_t,float*);
- uint8_t getAngleRange(uint8_t,float*,float*);
+ uint8_t getUpAngleRange(uint8_t,float*,float*);
+ uint8_t getLowAngleRange(uint8_t,float*,float*);
+
+ uint8_t saveDataToEEPROM(uint8_t,uint8_t);
};
\ No newline at end of file
