mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[docs] Add missing JavaDocs (#6146)
This commit is contained in:
@@ -26,8 +26,8 @@ frc::MecanumDriveKinematics wpi::Protobuf<frc::MecanumDriveKinematics>::Unpack(
|
||||
void wpi::Protobuf<frc::MecanumDriveKinematics>::Pack(
|
||||
google::protobuf::Message* msg, const frc::MecanumDriveKinematics& value) {
|
||||
auto m = static_cast<wpi::proto::ProtobufMecanumDriveKinematics*>(msg);
|
||||
wpi::PackProtobuf(m->mutable_front_left(), value.GetFrontLeftWheel());
|
||||
wpi::PackProtobuf(m->mutable_front_right(), value.GetFrontRightWheel());
|
||||
wpi::PackProtobuf(m->mutable_rear_left(), value.GetRearLeftWheel());
|
||||
wpi::PackProtobuf(m->mutable_rear_right(), value.GetRearRightWheel());
|
||||
wpi::PackProtobuf(m->mutable_front_left(), value.GetFrontLeft());
|
||||
wpi::PackProtobuf(m->mutable_front_right(), value.GetFrontRight());
|
||||
wpi::PackProtobuf(m->mutable_rear_left(), value.GetRearLeft());
|
||||
wpi::PackProtobuf(m->mutable_rear_right(), value.GetRearRight());
|
||||
}
|
||||
|
||||
@@ -27,8 +27,8 @@ frc::MecanumDriveKinematics StructType::Unpack(std::span<const uint8_t> data) {
|
||||
|
||||
void StructType::Pack(std::span<uint8_t> data,
|
||||
const frc::MecanumDriveKinematics& value) {
|
||||
wpi::PackStruct<kFrontLeftOff>(data, value.GetFrontLeftWheel());
|
||||
wpi::PackStruct<kFrontRightOff>(data, value.GetFrontRightWheel());
|
||||
wpi::PackStruct<kRearLeftOff>(data, value.GetRearLeftWheel());
|
||||
wpi::PackStruct<kRearRightOff>(data, value.GetRearRightWheel());
|
||||
wpi::PackStruct<kFrontLeftOff>(data, value.GetFrontLeft());
|
||||
wpi::PackStruct<kFrontRightOff>(data, value.GetFrontRight());
|
||||
wpi::PackStruct<kRearLeftOff>(data, value.GetRearLeft());
|
||||
wpi::PackStruct<kRearRightOff>(data, value.GetRearRight());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user