Skip to content

Commit

Permalink
Updated some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jkerpe committed Oct 23, 2023
1 parent 3c4789a commit 59976d5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 27 deletions.
20 changes: 8 additions & 12 deletions lib/HALTarget/IMU.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,29 +92,25 @@ class IMU : public IIMU
*/
void calibrate() final;


/**
* Get last Accelerometer values.
* Get last Accelerometer values in mm/s/s.
*
* @return Accelerometer values
*/
//
* @return Accelerometer values [acceleration_x, acceleration_y]
*/
const int16_t* getAccelerationValues() final;

/**
* Get last Gyro values.
* Get last Gyroscope values in mrad per second.
*
* @return Gyro values
*/
//
* @return Gyroscope values
*/
const int16_t getTurnRate() final;

/**
* Get last Magnetometer values.
* Get last Magnetometer values in mrad.
*
* @return Magnetometer values
*/
//
*/
const int16_t getMagnetometerAngle() final;

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/HALTest/Board.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class Board : public IBoard
/** Red LED driver */
LedGreen m_ledGreen;

/** Proximity sensors */
/** IMU driver */
IMU m_imu;

/**
Expand Down
19 changes: 8 additions & 11 deletions lib/HALTest/IMU.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,33 +77,30 @@ class IMU : public IIMU
}

/**
* Get last Accelerometer values.
* Get last Accelerometer values in mm/s/s.
*
* @return Accelerometer values
*/
//
* @return Accelerometer values [acceleration_x, acceleration_y]
*/
const int16_t* getAccelerationValues() final
{
return m_accelerationValues;
}

/**
* Get last Gyro values.
* Get last Gyroscope values in mrad per second.
*
* @return Gyro values
*/
//
* @return Gyroscope values
*/
const int16_t getTurnRate() final
{
return 0;
}

/**
* Get last Magnetometer values.
* Get last Magnetometer values in mrad.
*
* @return Magnetometer values
*/
//
*/
const int16_t getMagnetometerAngle() final
{
return 0;
Expand Down
6 changes: 3 additions & 3 deletions lib/SensorFusion/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ void App::sendSensorData() const
Util::int16ToByteArray(&payload[1 * sizeof(int16_t)], sizeof(int16_t), accelerationValues[1]);
Util::int16ToByteArray(&payload[2 * sizeof(int16_t)], sizeof(int16_t), turnRate);
Util::int16ToByteArray(&payload[3 * sizeof(int16_t)], sizeof(int16_t), orientationMagnetometer);
Util::int16ToByteArray(&payload[4 * sizeof(int16_t)], sizeof(int16_t), orientationOdometry);
Util::int16ToByteArray(&payload[5 * sizeof(int16_t)], sizeof(int16_t), positionXOdometry);
Util::int16ToByteArray(&payload[6 * sizeof(int16_t)], sizeof(int16_t), positionYOdometry);
Util::int16ToByteArray(&payload[4 * sizeof(int16_t)], sizeof(int16_t), orientationOdometryInt16);
Util::int16ToByteArray(&payload[5 * sizeof(int16_t)], sizeof(int16_t), positionXOdometryInt16);
Util::int16ToByteArray(&payload[6 * sizeof(int16_t)], sizeof(int16_t), positionYOdometryInt16);

(void)m_smpServer.sendData(m_smpChannelIdSensorData, payload, sizeof(payload));
}
Expand Down

0 comments on commit 59976d5

Please sign in to comment.