18template <
int States,
int Inputs,
int Outputs>
26 static std::optional<frc::LinearSystem<States, Inputs, Outputs>>
Unpack(
57 if (ai.empty() || bi.empty() || ci.empty() || di.empty()) {
79 .num_outputs = Outputs,
A plant defined using state-space notation.
Definition LinearSystem.h:35
pb_callback_t Callback() const
Gets the nanopb callback pointing to this object.
Definition ProtobufCallbacks.h:141
void SetLimits(DecodeLimits limit) noexcept
Set the limits on what happens if more elements exist in the buffer then expected.
Definition ProtobufCallbacks.h:134
A callback method that will pack elements when called.
Definition ProtobufCallbacks.h:486
Class for wrapping a nanopb ostream.
Definition Protobuf.h:119
bool Encode(const typename Protobuf< std::remove_cvref_t< T > >::MessageStruct &msg)
Decodes a protobuf.
Definition Protobuf.h:211
A DirectUnpackCallback backed by a SmallVector<T, N>.
Definition ProtobufCallbacks.h:335
std::span< T > Items() noexcept
Gets a span pointing to the storage buffer.
Definition ProtobufCallbacks.h:350
Definition system.npb.h:19
uint32_t num_inputs
Definition system.npb.h:25
pb_callback_t b
Definition system.npb.h:28
pb_callback_t c
Definition system.npb.h:29
pb_callback_t a
Definition system.npb.h:27
pb_callback_t d
Definition system.npb.h:30
uint32_t num_states
Definition system.npb.h:24
uint32_t num_outputs
Definition system.npb.h:26
Protobuf serialization template.
Definition Protobuf.h:36
struct _wpi_proto_ProtobufLinearSystem wpi_proto_ProtobufLinearSystem