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
@@ -7,8 +7,8 @@
|
||||
#include "wpi/util/protobuf/ProtobufCallbacks.hpp"
|
||||
#include "wpimath/protobuf/geometry3d.npb.h"
|
||||
|
||||
std::optional<wpi::math::Transform3d> wpi::util::Protobuf<wpi::math::Transform3d>::Unpack(
|
||||
InputStream& stream) {
|
||||
std::optional<wpi::math::Transform3d>
|
||||
wpi::util::Protobuf<wpi::math::Transform3d>::Unpack(InputStream& stream) {
|
||||
wpi::util::UnpackCallback<wpi::math::Translation3d> tsln;
|
||||
wpi::util::UnpackCallback<wpi::math::Rotation3d> rot;
|
||||
wpi_proto_ProtobufTransform3d msg{
|
||||
@@ -32,8 +32,8 @@ std::optional<wpi::math::Transform3d> wpi::util::Protobuf<wpi::math::Transform3d
|
||||
};
|
||||
}
|
||||
|
||||
bool wpi::util::Protobuf<wpi::math::Transform3d>::Pack(OutputStream& stream,
|
||||
const wpi::math::Transform3d& value) {
|
||||
bool wpi::util::Protobuf<wpi::math::Transform3d>::Pack(
|
||||
OutputStream& stream, const wpi::math::Transform3d& value) {
|
||||
wpi::util::PackCallback tsln{&value.Translation()};
|
||||
wpi::util::PackCallback rot{&value.Rotation()};
|
||||
wpi_proto_ProtobufTransform3d msg{
|
||||
|
||||
Reference in New Issue
Block a user