Library for XBus servo (under construction)
Dependents: mbed_XBus_Test mbed_XBus_MotionTest XBusServoTest ControlYokutan2017_2 ... more
It's pre-opened page. it's still a little bit unstable to use command packet but mostly work. Tested only on KL25Z
暫定版ページです。 まだコマンドパケット使用時に時々不安定になりますが、概ね動作しています。 KL25Z上でのみ、動作確認しています
Diff: XBusServo.h
- Revision:
- 10:0cf9b0f582fb
- Parent:
- 9:9248ea2cb4b5
- Child:
- 11:becaec517aee
--- a/XBusServo.h Wed Oct 08 05:58:09 2014 +0000 +++ b/XBusServo.h Wed Oct 08 06:02:08 2014 +0000 @@ -114,14 +114,21 @@ this does just to resetve the buffer. you need to add XBus servo at the beginning of your sketch - @bref Constructor - @note 2014/09/02 : move from Arduino lib by Sawa */ XBusServo(PinName tx, PinName rx, uint8_t maxServoNum); public: +/** + @return XBus error code + @bref start function to use XBus + @note 2014/09/02 : move from Arduino lib by Sawa +*/ XBusError start(); +/** + @bref stop function to use XBus + @note 2014/09/02 : move from Arduino lib by Sawa +*/ void stop(); XBusError addServo(uint8_t channelID, uint16_t initValue);