mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
SCRIPT: wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
ae6bdc9d25
commit
2109161534
@@ -6,8 +6,8 @@
|
||||
|
||||
#include "wpimath/protobuf/geometry2d.npb.h"
|
||||
|
||||
std::optional<wpi::math::Translation2d> wpi::util::Protobuf<wpi::math::Translation2d>::Unpack(
|
||||
InputStream& stream) {
|
||||
std::optional<wpi::math::Translation2d>
|
||||
wpi::util::Protobuf<wpi::math::Translation2d>::Unpack(InputStream& stream) {
|
||||
wpi_proto_ProtobufTranslation2d msg;
|
||||
if (!stream.Decode(msg)) {
|
||||
return {};
|
||||
@@ -19,8 +19,8 @@ std::optional<wpi::math::Translation2d> wpi::util::Protobuf<wpi::math::Translati
|
||||
};
|
||||
}
|
||||
|
||||
bool wpi::util::Protobuf<wpi::math::Translation2d>::Pack(OutputStream& stream,
|
||||
const wpi::math::Translation2d& value) {
|
||||
bool wpi::util::Protobuf<wpi::math::Translation2d>::Pack(
|
||||
OutputStream& stream, const wpi::math::Translation2d& value) {
|
||||
wpi_proto_ProtobufTranslation2d msg{
|
||||
.x = value.X().value(),
|
||||
.y = value.Y().value(),
|
||||
|
||||
Reference in New Issue
Block a user