Revision 9090cc7e

View differences:

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
}
include/amiro/Odometry.h
28 28
     */
29 29
    void setPosition(float pX, float pY, float pPhi);
30 30

  
31

  
32

  
33
    void setPositionXY(float pX, float pY);
34

  
35

  
31 36
    /**
32 37
     * Reset the position to [0,0,0]
33 38
     */

Also available in: Unified diff