Skip to content

Commit

Permalink
implemented IMU on Target
Browse files Browse the repository at this point in the history
  • Loading branch information
jkerpe committed Oct 4, 2023
1 parent 5208343 commit 3238c16
Show file tree
Hide file tree
Showing 10 changed files with 115 additions and 478 deletions.
113 changes: 0 additions & 113 deletions lib/HALSim/Gyroscope.cpp

This file was deleted.

141 changes: 0 additions & 141 deletions lib/HALSim/Gyroscope.h

This file was deleted.

6 changes: 3 additions & 3 deletions lib/HALSim/IMU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ const double* IMU::getAccelerometerValues()
m_accelerationValues[axisIndex] = accelerationValues[axisIndex];
}
}
if (abs(m_accelerationValues[0])>0.1 || abs(m_accelerationValues[1])>0.1){
std::cout<<"Accelerometer.cpp: ACCEL: x = " << m_accelerationValues[0]<< "; y = "<<m_accelerationValues[1]<< std::endl;
}
//if (abs(m_accelerationValues[0])>0.1 || abs(m_accelerationValues[1])>0.1){
std::cout<<"Accelerometer.cpp: ACCEL: x = " << m_accelerationValues[0]<< "; y = "<<m_accelerationValues[1]<< "; z = "<<m_accelerationValues[2]<< std::endl;
//}
return m_accelerationValues;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/HALSim/IMU.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class IMU : public IIMU
/**
* Number of used axis of the accelerometer.
*/
static const uint8_t NUMBER_OF_AXIS = 2;
static const uint8_t NUMBER_OF_AXIS = 3;


static const uint8_t INDEX_OF_Z_AXIS = 2;
Expand Down
Empty file removed lib/HALTarget/Accelerometer.cpp
Empty file.
Loading

0 comments on commit 3238c16

Please sign in to comment.