It is partially no_std
. It does not currently integrate with any API directly, but this may be added in the future.
- Node-like stream system for data processing
- Basic arithmetic + integral and derivative
- PID
- Moving average
- EWMA
- Simple device control system
- Trapezoidal motion profile following
RRTK Stream Builder now available: Code generation from visual nodes for the stream system.
Initial release.
Fix motion profile issue.
Start new motor-encoder system.
Function for motors to follow motion profiles.
Allow the user to run a custom update loop for motion profile following as an alternative to the single function.
Add an update method to encoders.
Add an update method to motors, allow easier detection of parts of motion profiles, and reorganize the package to use features with the motor-encoder system in a module.
Start new stream system.
Reorganize a bit and add EWMA stream.
Add moving average stream.
- performance improvements
- use array instead of vec for inputs to
SumStream
andProductStream
- avoid unnecessary weight sum calculation in
MovingAverageStream
- make the number of shifts in
PIDControllerShift
a constant
- use array instead of vec for inputs to
- replace all instances of
MotionProfileState
withMotionProfilePiece
- add
History
trait, which is like aStream
but you specify a time when youget
- reorganize streams into modules
- remove unnecessary
std
requirement for a couple types
- Move from
Stream
and the previous device system toGetter
andSettable
.Getter
is like a stream or encoder andSettable
is like a writable device. - Add
Device
type which makes rawGetter
s andSettable
s work together better as mechanical devices in a system. This should represent a physical device. - Add
Axle
type which contains multipleDevice
objects. It uses the capabilities of each device to control the real-life system. Eg. Data is gathered fromGetter
devices (Device::Read
for encoders andDevice::ReadWrite
for servos) and used to control motors that do not contain their own control theory processing (Device::ImpreciseWrite
), but motors that can do this on their own (Device::ReadWrite
andDevice::PreciseWrite
depending on whether the internal data can be read) do not need this control. This object should represent a physical linkage between devices. - Don't require a feature to be enabled for PID controller types
- Change API for PID controller types to be constructed with a k-values type rather than three individual
f32
s.
- Don't require a feature to be enabled for motion profiles.
- Make
Settable
able to followGetter
s of the same type. - Add
GetterFromHistory
struct allowingHistory
objects to be used asGetter
s.
- Add
set_delta
andset_time
methods toGetterFromHistory
. - Move
streams::Constant
toConstantGetter
. - Implement
Settable
forConstantGetter
. - Add
get_last_request
method toSettable
. - Move
MotionProfile
get_*
methods toOption
instead ofResult
. - Rename
UpdateOutput
toNothingOrError
. - Fix
Axle
bug where it would try to use nonexistent PID controllers forDevice::ImpreciseWrite
objects if it had not yet received aCommand
. - Instead of directly implementing
set
inSettable
, you now implementdirect_set
. You should still call justset
though. This is a workaround required to makeSettableData
andget_last_request
work correctly. - Move
MotionProfile
toHistory<Command, E>
instead ofHistory<State, E>
. - Move timestamps to
i64
instread off32
. The recommended unit is nanoseconds. This is notu64
due to the use of deltas. - Fix
MovingAverageStream
panicing issue. - Rename
StreamPID
toPIDControllerStream
. - Improve performance of
PIDControllerStream
. - Mark
Error
enum as non-exhaustive. - Write three example files.
- Derive additional traits for a few structs.
- Give
MotionProfile
a return value after it has completed. This is based on the end state provided to the constructor. It will choose the lowest possible position derivative to satisfy the end state. This means that if acceleration is 0, the position derivative in the command will be velocity, otherwise acceleration. If velocity is also 0, it will be position, otherwise just velocity. - Add
get_(position|velocity|acceleration)
methods toCommand
. - Add
Latest
stream allowing you to choose the output of whichever of a set of streams has the later timestamp. - Implement
From<State>
forCommand
. - Rename
TimeGetterFromStream
toTimeGetterFromGetter
.
- Implement several
core::ops
traits andCopy
forState
- Fix name of
PositionToState
- Slightly improve performance of
MotionProfile
and(Position|Velocity|Acceleration)ToState
by removing unnecessary code - Improve tests
- Minor documentation fixes
- Add missing LGPL license notice to a few files
- Begin new device system.
- Make everything use
&RefCell<Terminal>
rather thanRc<RefCell<Terminal>>
- Make math streams use generics.
- Add
SettableCommandDeviceWrapper
andGetterStateDeviceWrapper
allowing types only implementingSettable<Command, _>
to be used as motors and types only implementingGetter<State, _>
to be used as encoders. - Revive
PositionDerivativeDependentPIDKValues
, now with aget_k_values
method for getting the k-values for a specific position derivative. - Add
evaluate
methods forPIDKValues
andPositionDerivativeDependentPIDKValues
. - Add
CommandPID
, an easier and faster way to use PID control to turn a standard DC motor and an encoder into a de facto servo. - Add
latest
function which gets the newer of twoDatum
objects.
- Add new
streams
submodulesflow
andlogic
. - Add new streams
Expirer
flow::IfStream
flow::IfElseStream
flow::FreezeStream
logic::AndStream
logic::OrStream
logic::NotStream
- Pass through
Not
forDatum<T>
whereT
implementsNot
. - Add
NoneGetter
. - Add
Axle
very similar to 0.4.0-alpha.1 one. - Move
(SettableCommand|GetterState)DeviceWrapper
todevices::wrappers
module. - Add experimental
Device
implementor for a differential mechanism. - Remove now-unused
GetterSettable
marker trait. - Move new device system to a new
devices
feature. - Minor documentation fix for
devices
module.
- Make differential calculations able to trust all branches equally instead of ignoring one.
- Remove unnecessary
Box
ing fromInputGetter
andInputTimeGetter
.
- Rename
following_update
toupdate_following_data
and removeupdate
calls from it. - Make
GetterFromHistory
use&mut dyn History
instead ofBox<dyn History>
and make its constructors takeimpl History
instead ofdyn History
. - Remove now-unnecessary
new_for_motion_profile
constructor forGetterFromHistory
. - Remove
Clone
bound onHistory<T, _>
'sT
. - Make
GetterFromHistory
return the requested timestamp as itsDatum
timestamp rather than that that the internalHistory
returns. - Make
make_input_getter
andmake_input_time_getter
functions instead of macros. - Add
NoneGetter
constructor. (It is a unit struct, so this is redundant.); - Add a
disconnect
method toTerminal
. - Add methods to builtin devices for getting references to their terminals.
- Slightly improve performance of
Terminal
'sget
implementation by using an array ofMaybeUninit
rather thanVec
. - Minor documentation fixes.
- Fix
Invert
get_terminal_2
which was returning terminal 1. - Make terminals pass commands to their connected counterparts.
- Rename
SettableCommandDeviceWrapper
toActuatorWrapper
. - Make
ActuatorWrapper
update its innerSettable
. - Make
ActuatorWrapper
callupdate_terminals
in itsUpdatable
implementation. - Fix
CommandPID
error integral doubling bug. - Add
TerminalData
type containing a timestamp, an optional command, and an optional state. - Implement
Getter<TerminalData, _>
forTerminal
. - Add
PIDWrapper
, a wrapper very similar toActuatorWrapper
that uses aCommandPID
to control a DC motor rather than needing a servo or a control system set up by the user. - Implement
TimeGetter
fori64
. It will always return its value as a time. - Remove unused
CannotConnectTerminals
error variant. - Make
GetterStateDeviceWrapper
update its innerGetter
. - Keep
CommandPID
from resetting itself whenever it gets a new command rather than only when the command is different. - Mark constructors for
State
,Datum
,PIDKValues
,PositionDerivativeDependentPIDKValues
, andCommand
asconst
. - Documentation improvements.