Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 8, 2024
1 parent 2ab36b3 commit 1d6004e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ google::protobuf::Message* wpi::Protobuf<
frc::DifferentialDriveWheelPositions
wpi::Protobuf<frc::DifferentialDriveWheelPositions>::Unpack(
const google::protobuf::Message& msg) {
auto m = static_cast<const wpi::proto::ProtobufDifferentialDriveWheelPositions*>(
&msg);
auto m =
static_cast<const wpi::proto::ProtobufDifferentialDriveWheelPositions*>(
&msg);
return frc::DifferentialDriveWheelPositions{
units::meter_t{m->left()},
units::meter_t{m->right()},
Expand All @@ -26,7 +27,8 @@ wpi::Protobuf<frc::DifferentialDriveWheelPositions>::Unpack(
void wpi::Protobuf<frc::DifferentialDriveWheelPositions>::Pack(
google::protobuf::Message* msg,
const frc::DifferentialDriveWheelPositions& value) {
auto m = static_cast<wpi::proto::ProtobufDifferentialDriveWheelPositions*>(msg);
auto m =
static_cast<wpi::proto::ProtobufDifferentialDriveWheelPositions*>(msg);
m->set_left(value.left.value());
m->set_right(value.right.value());
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ struct WPILIB_DLLEXPORT DifferentialDriveWheelPositions {
} // namespace frc

#include "frc/kinematics/proto/DifferentialDriveWheelPositionsProto.h"
#include "frc/kinematics/struct/DifferentialDriveWheelPositionsStruct.h"
#include "frc/kinematics/struct/DifferentialDriveWheelPositionsStruct.h"

0 comments on commit 1d6004e

Please sign in to comment.