firmwareSandsara
generalCallbacks_speed Class Reference

[BLE Command] This class is used to create an object to be called when you write to the generalSpeed characteristic. More...

Inheritance diagram for generalCallbacks_speed:
Collaboration diagram for generalCallbacks_speed:

Detailed Description

[BLE Command] This class is used to create an object to be called when you write to the generalSpeed characteristic.

the sphere speed can be changed with this characteristic. the sphere tries to move in a constant speed most of the time, the speed can goes down or up because we implement an algorithm to accelerate or decelerate to prevent abrupt motor movements and the Scara mechanism also tends to move slower in the center.

Properties:

  • Write
  • Read

UUID: 7b204b10-30c3-11eb-adc1-0242ac120002

Usage: if you want to change the speed of sandsara you can choose you're desired speed between 10 posible values just writing to this characteristic a number between 1 and 10 where 1 is the slowest speed and 10 the highest.

Range: accepted values goes from 1 to 10.

Response: you can receive one of these responses after you write to this characteristic.

  • "ok" the desired speed was set.
  • "error= -2" the speed is out of range.
Note
all the responses have to be read from the generalErrorMsg characteristic after being notified by it.
See also
how to know the status of sandsara? –> generalCallbacks_status.
How to read the response of a characteristic

The documentation for this class was generated from the following file: