Skip to content

Commit

Permalink
chore: add descriptions for the ControllerInput structs
Browse files Browse the repository at this point in the history
Add description for the variables inside the ControllerInput structs for all 3 controllers.
  • Loading branch information
camillechasset authored and odsod committed Dec 22, 2020
1 parent 56f8a85 commit a2c52d6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions antiwindupcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ type AntiWindupControllerState struct {

// AntiWindupControllerInput holds the input parameters to an AntiWindupController.
type AntiWindupControllerInput struct {
// TODO: Document me.
// ReferenceSignal is the reference value for the signal to control.
ReferenceSignal float64
// TODO: Document me.
// ActualSignal is the actual value of the signal to control.
ActualSignal float64
// TODO: Document me.
// FeedForwardSignal is the contribution of the feed-forward control loop in the controller output.
FeedForwardSignal float64
// TODO: Document me.
// SamplingInterval is the time interval elapsed since the previous call of the controller Update method.
SamplingInterval time.Duration
}

Expand Down
6 changes: 3 additions & 3 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ type ControllerState struct {

// ControllerInput holds the input parameters to a Controller.
type ControllerInput struct {
// TODO: Document me.
// ReferenceSignal is the reference value for the signal to control.
ReferenceSignal float64
// TODO: Document me.
// ActualSignal is the actual value of the signal to control.
ActualSignal float64
// TODO: Document me.
// SamplingInterval is the time interval elapsed since the previous call of the controller Update method.
SamplingInterval time.Duration
}

Expand Down
10 changes: 5 additions & 5 deletions trackingcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ type TrackingControllerState struct {

// TrackingControllerInput holds the input parameters to a TrackingController.
type TrackingControllerInput struct {
// TODO: Document me.
// ReferenceSignal is the reference value for the signal to control.
ReferenceSignal float64
// TODO: Document me.
// ActualSignal is the actual value of the signal to control.
ActualSignal float64
// TODO: Document me.
// FeedForwardSignal is the contribution of the feed-forward control loop in the controller output.
FeedForwardSignal float64
// TODO: Document me.
// AppliedControlSignal is the actual control command applied by the actuator.
AppliedControlSignal float64
// TODO: Document me.
// SamplingInterval is the time interval elapsed since the previous call of the controller Update method.
SamplingInterval time.Duration
}

Expand Down

0 comments on commit a2c52d6

Please sign in to comment.