Skip to content

Commit

Permalink
Make IMU constructor take const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocky14683 committed Nov 24, 2023
1 parent fc643e7 commit b2f06ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/lemlib/devices/gyro/imu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Imu : public Gyro {
*
* @param imu reference to the pros imu to use
*/
Imu(pros::Imu& imu);
Imu(const pros::Imu& imu);
/**
* @brief Calibrate the IMU
*
Expand Down
2 changes: 1 addition & 1 deletion src/lemlib/devices/gyro/imu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Imu::Imu(uint8_t port)
* Takes a reference to a pros Imu to be used. Pros imu is then constructed in an
* initializer list
*/
Imu::Imu(pros::Imu& imu)
Imu::Imu(const pros::Imu& imu)
: imu(imu) {}

/**
Expand Down

0 comments on commit b2f06ff

Please sign in to comment.