[docs] Add missing JavaDocs (#6146)

This commit is contained in:
Tyler Veness
2024-01-04 08:38:06 -08:00
committed by GitHub
parent 6e58db398d
commit f29a7d2e50
145 changed files with 1106 additions and 94 deletions

View File

@@ -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());
}

View File

@@ -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());
}