Revision 9090cc7e components/Odometry.cpp
| components/Odometry.cpp | ||
|---|---|---|
| 76 | 76 |
chSysUnlock(); |
| 77 | 77 |
} |
| 78 | 78 |
|
| 79 |
void Odometry::setPositionXY(float pX, float pY) {
|
|
| 80 |
chSysLock(); |
|
| 81 |
this->pX = pX; |
|
| 82 |
this->pY = pY; |
|
| 83 |
chSysUnlock(); |
|
| 84 |
} |
|
| 85 |
|
|
| 79 | 86 |
void Odometry::resetPosition() {
|
| 80 | 87 |
this->setPosition(0.0f,0.0f,0.0f); |
| 81 | 88 |
} |
Also available in: Unified diff