MakeBlock Drive Updated
Updated library for MakeBlock Ranger
Loading...
Searching...
No Matches
MeSmartServo.cpp File Reference

Driver for Me Smart Servo device. More...

#include "MeSmartServo.h"
#include "MeSerial.h"
#include <avr/wdt.h>
Include dependency graph for MeSmartServo.cpp:

Detailed Description

Driver for Me Smart Servo device.

Author
MakeBlock
Version
V1.0.0
Date
2016/08/23
Copyright
This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
Open Source Licensing GPL V2
This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See http://www.gnu.org/copyleft/gpl.html
Description
This file is a drive for Smart Servo device, The Smart Servo inherited the MeSerial class from SoftwareSerial.
Method List:
  1. uint8_t MeSmartServo::readByte(uint8_t *argv,int16_t idx);
  2. short MeSmartServo::readShort(uint8_t *argv,int16_t idx,boolean ignore_high);
  3. float MeSmartServo::readFloat(uint8_t *argv,int16_t idx);
  4. long MeSmartServo::readLong(uint8_t *argv,int idx);
  5. uint8_t MeSmartServo::sendByte(uint8_t val);
  6. uint8_t MeSmartServo::sendShort(int16_t val,boolean ignore_high);
  7. uint8_t MeSmartServo::sendFloat(float val);
  8. uint8_t MeSmartServo::sendLong(long val);
  9. boolean MeSmartServo::assignDevIdRequest(void);
  10. boolean MeSmartServo::moveTo(uint8_t dev_id,long angle_value,float speed,smartServoCb callback);
  11. boolean MeSmartServo::move(uint8_t dev_id,long angle_value,float speed,smartServoCb callback);
  12. boolean MeSmartServo::setZero(uint8_t dev_id);
  13. boolean MeSmartServo::setBreak(uint8_t dev_id, uint8_t breakStatus);
  14. boolean MeSmartServo::setRGBLed(uint8_t dev_id, uint8_t r_value, uint8_t g_value, uint8_t b_value);
  15. boolean MeSmartServo::handSharke(uint8_t dev_id);
  16. boolean MeSmartServo::setPwmMove(uint8_t dev_id, int16_t pwm_value);
  17. boolean MeSmartServo::setInitAngle(uint8_t dev_id,uint8_t mode,int16_t speed);
  18. long MeSmartServo::getAngleRequest(uint8_t devId);
  19. float MeSmartServo::getSpeedRequest(uint8_t devId);
  20. float MeSmartServo::getVoltageRequest(uint8_t devId);
  21. float MeSmartServo::getTempRequest(uint8_t devId);
  22. float MeSmartServo::getCurrentRequest(uint8_t devId);
  23. void MeSmartServo::assignDevIdResponse(void *arg);
  24. void MeSmartServo::processSysexMessage(void);
  25. void MeSmartServo::smartServoEventHandle(void);
  26. void MeSmartServo::errorCodeCheckResponse(void *arg);
  27. void MeSmartServo::smartServoCmdResponse(void *arg);
History:
`<Author>`         `<Time>`        `<Version>`        `<Descr>`
Mark Yan         2016/08/23     1.0.0            Build the new.