18template <
int States,
int Inputs,
int Outputs>
26 static std::optional<wpi::math::LinearSystem<States, Inputs, Outputs>>
Unpack(
57 if (ai.empty() || bi.empty() || ci.empty() || di.empty()) {
80 .num_outputs = Outputs,
A plant defined using state-space notation.
Definition LinearSystem.hpp:35
constexpr const Matrixd< States, States > & A() const
Returns the system matrix A.
Definition LinearSystem.hpp:104
constexpr const Matrixd< States, Inputs > & B() const
Returns the input matrix B.
Definition LinearSystem.hpp:117
constexpr const Matrixd< Outputs, States > & C() const
Returns the output matrix C.
Definition LinearSystem.hpp:130
constexpr const Matrixd< Outputs, Inputs > & D() const
Returns the feedthrough matrix D.
Definition LinearSystem.hpp:143
void SetLimits(DecodeLimits limit) noexcept
Set the limits on what happens if more elements exist in the buffer then expected.
Definition ProtobufCallbacks.hpp:134
pb_callback_t Callback() const
Gets the nanopb callback pointing to this object.
Definition ProtobufCallbacks.hpp:141
A callback method that will pack elements when called.
Definition ProtobufCallbacks.hpp:487
pb_callback_t Callback() const
Gets the nanopb callback pointing to this object.
Definition ProtobufCallbacks.hpp:519
Class for wrapping a nanopb ostream.
Definition Protobuf.hpp:119
bool Encode(const typename Protobuf< std::remove_cvref_t< T > >::MessageStruct &msg)
Decodes a protobuf.
Definition Protobuf.hpp:211
A DirectUnpackCallback backed by a SmallVector<T, N>.
Definition ProtobufCallbacks.hpp:335
std::span< T > Items() noexcept
Gets a span pointing to the storage buffer.
Definition ProtobufCallbacks.hpp:351
@ Fail
Definition ProtobufCallbacks.hpp:30
Definition CvSource.hpp:15
uint32_t num_inputs
Definition system.npb.h:37
pb_callback_t b
Definition system.npb.h:40
pb_callback_t c
Definition system.npb.h:41
pb_callback_t a
Definition system.npb.h:39
pb_callback_t d
Definition system.npb.h:42
uint32_t num_states
Definition system.npb.h:36
uint32_t num_outputs
Definition system.npb.h:38
Protobuf serialization template.
Definition Protobuf.hpp:36
struct _wpi_proto_ProtobufLinearSystem wpi_proto_ProtobufLinearSystem