add encodeur set value
This commit is contained in:
parent
8c19ae96fa
commit
2e593cb4e0
@ -39,6 +39,13 @@ public:
|
|||||||
*/
|
*/
|
||||||
int getValue();
|
int getValue();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief set the encodeur value
|
||||||
|
*
|
||||||
|
* @param val the new encodeur value
|
||||||
|
*/
|
||||||
|
void setValue(int val);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief update the encodeur value
|
* @brief update the encodeur value
|
||||||
*
|
*
|
||||||
|
@ -67,3 +67,7 @@ void SwitchableEncodeur::resetValue() {
|
|||||||
this->oldPosition = 0;
|
this->oldPosition = 0;
|
||||||
this->readAndReset();
|
this->readAndReset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SwitchableEncodeur::setValue(int val){
|
||||||
|
this->write(val*4);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user