// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #pragma once #include "frc/kinematics/struct/SwerveDriveKinematicsStruct.h" template frc::SwerveDriveKinematics wpi::Struct>::Unpack( std::span data) { constexpr size_t kModulesOff = 0; return frc::SwerveDriveKinematics{ wpi::UnpackStructArray( data)}; } template void wpi::Struct>::Pack( std::span data, const frc::SwerveDriveKinematics& value) { constexpr size_t kModulesOff = 0; wpi::PackStructArray(data, value.GetModules()); }