Skip to content

Commit c6a4e78

Browse files
committed
fix formatting
1 parent 9b342b3 commit c6a4e78

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

include/hardware/IMU/V5InertialSensor.hpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ class V5InertialSensor : public IMU {
4747
*/
4848
static V5InertialSensor from_pros_imu(pros::Imu imu, Number scalar = 1.0);
4949
/**
50-
* @brief Get the port the inertial sensor is connected to
51-
*
52-
* This function returns the port number of the inertial sensor.
53-
*
54-
* @return SmartPort the port the inertial sensor is connected to
55-
*
56-
* @b Example:
57-
* @code {.cpp}
58-
* void initialize() {
59-
* lemlib::V5InertialSensor imu(1);
60-
* std::cout << "Inertial sensor is connected to port " << imu.getPort() << std::endl;
61-
* }
62-
* @endcode
63-
*/
50+
* @brief Get the port the inertial sensor is connected to
51+
*
52+
* This function returns the port number of the inertial sensor.
53+
*
54+
* @return SmartPort the port the inertial sensor is connected to
55+
*
56+
* @b Example:
57+
* @code {.cpp}
58+
* void initialize() {
59+
* lemlib::V5InertialSensor imu(1);
60+
* std::cout << "Inertial sensor is connected to port " << imu.getPort() << std::endl;
61+
* }
62+
* @endcode
63+
*/
6464
SmartPort getPort() const;
6565
/**
6666
* @brief calibrate the V5 Inertial Sensor

src/hardware/IMU/V5InertialSensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ V5InertialSensor V5InertialSensor::from_pros_imu(pros::IMU imu, Number scalar) {
2020

2121
SmartPort V5InertialSensor::getPort() const {
2222
std::lock_guard lock(m_mutex);
23-
SmartPort port(m_imu.get_port(),DynamicPort{});
23+
SmartPort port(m_imu.get_port(), DynamicPort {});
2424
return port;
2525
}
2626

0 commit comments

Comments
 (0)