This disclosure relates generally to vehicles and, more particularly, to methods and apparatus to perform observer-based control of a vehicle.
In recent years, vehicle control systems, like those used in aircraft, automotive, and marine vehicles, have grown progressively more complex with the proliferation of newer and more powerful controllers. The vehicle control systems include one or more controllers capable of implementing a greater number of complex algorithms for measuring and/or controlling different aspects of a vehicle. Control systems continue to incorporate applications of advanced control theory that previously were not feasible to implement due to SW/HW limitations. In addition, the applications of the control theory continue to be modified for adaptation on newer processor architectures.
Vehicle control systems include implementations of control theory based on whether a state of the vehicle is known. In some examples, the state of the vehicle is known (measured), which enables the vehicle control system to generate a control command based on a known state of the vehicle. However, in some instances, the state of the vehicle is partially known or completely unknown. In this case, only output measurements from the vehicle sensors (such as IMU and rate gyros) are available to synthesize a control policy. An unknown state of the vehicle presents additional challenges to the vehicle control system such as, for example, generating a control command based on an estimation of the state of the vehicle. The estimation of the state of the vehicle requires additional processing power to perform complex algorithmic calculations based on advanced control theory techniques. Algorithms that rely on estimation of the vehicle state based on a suite of sensors are called “the observer-based control”.
An example apparatus disclosed herein includes an error module to calculate a difference between a first state of a vehicle and a second state of the vehicle, the second state based on a measurement from a sensor, an observer module to determine a third state of the vehicle based on the difference, a baseline control module to generate a first command based on the third state, and a vehicle module to execute the first command to control the vehicle.
An example method disclosed herein includes calculating a difference between a first state of a vehicle and a second state of the vehicle, the second state based on a measurement from a sensor, determining a third state of the vehicle based on the difference, generating a first command based on the third state, and executing the first command to control the vehicle.
An example tangible computer-readable storage medium includes instructions, which when executed, cause a machine to at least calculate a difference between a first state of a vehicle and a second state of the vehicle, the second state based on a measurement from a sensor, determine a third state of the vehicle based on the difference, generate a first command based on the third state, and execute the first command to control the vehicle.
Wherever possible, the same reference numbers will be used throughout the drawing(s) and accompanying written description to refer to the same or like parts.
In recent years, vehicle manufacturers have invested in vehicle control system designs to improve accuracy and robustness. The vehicle control system designs include implementations of control theory based on whether a state of a vehicle parameter is known. In some examples, the state of the vehicle parameter is known, which enables the vehicle control system to generate a control command based on a known state of the vehicle parameter. As used herein, the term “vehicle” may refer to air-based (e.g., aircraft), land-based (e.g., automotive, buses, trains, etc.), and/or marine equipment (e.g., boats, submarines, etc.). For example, an aircraft parameter may include an angle of attack, a pitch rate, a first flex mode position, a second flex mode position, a first flex mode velocity, a second flex mode velocity, etc. A state of the aircraft parameter may include a value based on a measurement from a sensor. For example, a state for an aircraft may be measured based on an acceleration sensor (e.g., an accelerometer), an angle of attack sensor, an angular rate sensor (e.g., a gyro sensor), etc.
The vehicle control systems that generate commands based on known states of vehicle parameters may utilize state-space representations to develop mathematical models of a physical system (e.g., an actuator, a vehicle, etc.). The state-space representation may include a set of input, output, and state variables related by first-order ordinary differential equations. For example, a representation of a continuous time-variant system that includes m inputs, p outputs, and n state variables may be described in accordance with Equation (1) and Equation (2) below:
{circumflex over (x)}_dot(t)=A(t)x(t)+B(t)u(t) Equation (1)
y(t)=C(t)x(t)+D(t)u(t) Equation (2)
In the illustrated example of Equation (1) above, the variable {circumflex over (x)}_dot(t) represents the vehicle state derivative vector, the variable A(t) represents a state matrix or a system matrix, where a dimension of A(t) is denoted by dim[A(t)]=n×n, and the variable x(t) represents a state vector, where x(t)∈Rn. The term Rn represents a Euclidean n-dimensional space. In the illustrated example of Equation (1) above, the variable B(t) represents an input matrix where a dimension of B(t) is denoted by dim[B(t)]=n×m, and the variable u(t) represents an input vector or a control vector, where u(t)∈Rm. In the illustrated example of Equation (2) above, the variable y(t) represents an output vector, where y(t)∈Rp, the variable C(t) represents an output matrix, where a dimension of C(t) is denoted by dim[C(t)]=p×n, and the variable x(t) represents the state vector, where x(t)∈Rn. In the illustrated example of Equation (2) above, the variable D(t) represents a control-feedthrough matrix (i.e., a feedforward matrix) where a dimension of D(t) is denoted by dim[D(t)]=p×m, and the variable u(t) represents the input vector or the control vector, where u(t)∈Rm.
Controllability is a property of the vehicle control system. The controllability of a system may denote an ability to move a system around the entire configuration space of the system using only specified admissible manipulations. An example variation of controllability is state controllability. State controllability may be a condition that implies a plausibility to move a state of a parameter and/or a state of a system from any initial value to any final value within a finite time window. For example, a continuous time-invariant linear state-space model is controllable if and only if rank[B AB A2 B . . . An-1B]=n, where rank is a number of linearly independent rows in a matrix, and where n is a number of state variables, the variable A is the state matrix, and the variable B is the input matrix.
Observability is another property of the vehicle control system. The observability of a system may be a measure for how well one or more internal states of a system can be inferred by knowing one or more external outputs of the system. The controllability and the observability of the system are mathematical duals. For example, the controllability of the system may denote that an input can bring any initial state to any final state, whereas the observability may denote that knowing an output of the system provides sufficient information to predict an initial state of the system.
In some examples, the state of the vehicle is unknown. An unknown state of the vehicle presents additional challenges to the vehicle control systems such as, for example, generating the control command based on an estimation of the state of the vehicle. The estimation of the state of the vehicle requires additional processing power to perform complex algorithmic calculations based on advanced control theory techniques. For example, to compensate for the unknown state (e.g., no a priori information regarding the state is known), a controller may implement state observers. The controller may also use adaptive control to generate one or more control laws to compensate for unknown parameters.
In some instances, the vehicle control system utilizes a state observer to determine an estimate of an unknown state of the vehicle and/or an unknown state of a parameter of the vehicle. The observer may calculate the estimate of the unknown state based on a measurement from a suite of sensors. The observer may obtain measurements related to an input and an output of the vehicle. For example, the observer may obtain an initial command for an input to an aircraft control system (e.g., a guidance command). In another example, the observer may obtain an output measurement from the vehicle sensors (e.g., accelerometers, rate gyros, etc.). For example, a representation of an observer model for a continuous time-variant linear system for the vehicle that includes m inputs, p outputs, and n state variables may be described in accordance with Equation (3) and Equation (4) below:
{circumflex over ({dot over (x)})}(t)=A(t){circumflex over (x)}(t)+B(t)u(t)+L(y(t)−ŷ(t)) Equation (3)
ŷ(t)=C(t){circumflex over (x)}(t)+D(t)u(t) Equation (4)
In the illustrated example of Equation (3) above, the variable {circumflex over ({dot over (x)})}(t) represents an estimate of the observer state derivative vector, the variable A (t) represents a state matrix or a system matrix, where a dimension of A(t) is denoted by dim[A(t)]=n×n, and the variable {circumflex over (x)}(t) represents an estimate of a state vector, where {circumflex over (x)}(t)∈Rn. The term Rn represents a Euclidean n-dimensional space. In the illustrated example of Equation (3) above, the variable B(t) represents an input matrix, where a dimension of B(t) is denoted by dim[B(t)]=n×m, and the variable u(t) represents an input vector or a control vector, where u(t)∈Rm. In the illustrated example of Equation (3) above, the variable L represents an observer error feedback gain, the variable y(t) represents the measurement or output vector, where y(t)∈Rp, and the variable ŷ(t) represents an estimate of an output vector. The variable L may be represented and parameterized as Lv, where v represents a small positive constant, which in turn represents the observer model design parameter and/or the observer model tuning parameter (e.g., the parameter that may be adjusted to affect a behavior of the system).
In the illustrated example of Equation (4) above, the variable ŷ(t) represents the estimate of the output vector, the variable C(t) represents an output matrix, where a dimension of C(t) is denoted by dim[C(t)]=p×n, and the variable {circumflex over (x)}(t) represents the estimate of the state vector, where {circumflex over (x)}(t)∈Rn. In the illustrated example of Equation (4) above, the variable D(t) represents a feedthrough matrix (i.e., a feedforward matrix) where a dimension of D(t) is denoted by dim[D(t)]=p×m, and the variable u(t) represents the control vector or the input vector, where u(t)∈Rm. In some examples, the estimate of the state vector from Equation (3) is used to form the control feedback input u(t) applied to a plant (e.g., a mathematical representation of a physical system) through a gains matrix K as described in accordance with Equation (5) below:
u(t)=−K{circumflex over (x)}(t) Equation (5)
Inserting Equation (5) above into Equation (3) and Equation (4) above may result in an observer model described in accordance with Equation (6) and Equation (7) below:
{circumflex over ({dot over (x)})}(t)=(A(t)−B(t)K){circumflex over (x)}(t)+L(y(t)−ŷ(t)) Equation (6)
ŷ(t)=(C(t)−D(t)K){circumflex over (x)}(t) Equation (7)
Due to the separation principle, the variables K and L may be chosen independently without disrupting the overall stability of the observer model. Effectively, the variables K and L are design variables that may be adjusted to improve performance of the observer model and that of the system.
Example vehicle control apparatus disclosed herein are operative to perform observer-based control of a vehicle. The example vehicle control apparatus may be used to generate commands to control the vehicle. The example vehicle control apparatus may generate or obtain a first command and modify the first command based on a state of the vehicle and/or a state of a parameter of the vehicle. For example, the vehicle control apparatus may determine an adjustment to the first command based on a difference between a first vehicle state (e.g., an initial state) and a second vehicle state (e.g., a desired state, a predicted state, etc.). The vehicle control apparatus may calculate an estimate of a state for a parameter (e.g., a predicted output) in response to the vehicle executing the adjustment to the first command. The example vehicle control apparatus may determine a second command based on the adjustment to the first command. The example vehicle control apparatus may transmit the second command to a servomechanism (e.g., a heterostat) to execute the second command. The example vehicle control apparatus may obtain a measurement from a sensor to determine a system output of the vehicle. For example, the vehicle control apparatus for an aircraft may obtain an angular velocity measurement from a gyro sensor to estimate a state of an angle of attack parameter for the aircraft based on executing a command (e.g., an adjusted command).
Some disclosed example vehicle control apparatus calculate a difference between the system output (e.g., the state of the vehicle parameter based on the measurement from the sensor) and the predicted output (e.g., the estimate of the state of the vehicle parameter). For example, the vehicle control apparatus for an aircraft may determine a difference (e.g., an estimation error) between an estimate of a state for a vertical acceleration parameter for the aircraft and a measured state for the vertical acceleration parameter for the aircraft. The vehicle control apparatus may generate a third command based on the measurement from the sensor. The example vehicle control apparatus may determine an adjustment to the third command based on the third command, the sensor measurement, and/or the estimation error. The example vehicle control apparatus may determine a fourth command based on the adjustment to the third command. The example vehicle control apparatus may transmit the fourth command to the servomechanism to execute the fourth command.
Some disclosed example vehicle control apparatus calculate an unknown state of a vehicle parameter and/or an unknown state of the vehicle based on a measurement from a sensor. For example, an aircraft may utilize one or more accelerometers to measure an acceleration of the aircraft and/or may utilize one or more angular rate sensors (e.g., gyro sensors) to measure angular velocity. The example vehicle control apparatus may utilize measurements from the accelerometers and/or the gyro sensors to calculate a state of a parameter such as, for example, an angle of attack parameter, a pitch angle parameter, a pitch rate parameter, a sideslip parameter, etc. For example, the aircraft control system may estimate a value for the state of the angle of attack parameter for the aircraft based on the measurement(s) from the accelerometers, the gyro sensors, etc. as opposed to determining the value for the state of the angle of attack parameter for the aircraft based on a measurement from an angle of attack sensor.
The example vehicle control apparatus described herein may include sub-modules to perform functions related to the control of the vehicle. The sub-modules may be responsible for individual tasks such as, for example, obtaining information (e.g., network information, sensor information, etc.), generating a guidance command, determining a state of a parameter of the vehicle and/or the state of the vehicle, etc. The sub-modules may be responsible for determining an estimate of a state of a parameter of the vehicle and/or an estimate of a state of the vehicle based on an execution of a command. In some examples, the sub-modules are responsible for generating one or more control laws and calculate adjustments to a generated command. In some instances, the sub-modules are responsible for transmitting an adjusted generated command to a servomechanism to execute the adjusted generated command.
In the illustrated example of
In some examples, the command input module 110 determines a difference between a command (e.g., a guidance command) and a measurement from a sensor. For example, the command input module 110 may determine a first value (e.g., an initial command, an initial state of a parameter, an initial state of the vehicle, etc.). For example, the first value may be a guidance command r. The command input module 110 may determine a second value (e.g., a value obtained from the database 180). For example, the second value may be a measurement y or ymeas from the database 180. The command input module 110 may determine a difference between the first value and the second value. For example, the command input module 110 may determine a difference between the command and the measurement to determine an error value of −e (e.g., r−y=−e). In some examples, the command input module 110 transmits the error value to the baseline control module 130.
In the illustrated example of
In some examples, the observer module 120 determines a state of a vehicle parameter based on a measurement from a sensor. For example, the observer module 120 may determine a state of an angle of attack parameter of an aircraft based on a measurement from an angle of attack sensor. In some instances, the observer module 120 determines an estimate of the state of the vehicle parameter. For example, the observer module 120 may determine an estimate of the state of the angle of attack parameter of the aircraft based on a measurement from a gyro sensor, a value from the database 180 (e.g., a sensor measurement, a value of a vehicle parameter state, etc.), etc. The observer module 120 may obtain the measurement from the sensor from the collection module 170.
In some examples, the observer module 120 determines an estimate for a state of a parameter of the vehicle based on the vehicle executing a command. For example, the observer module 120 may determine the state of a vehicle parameter before executing the command and calculate an estimate of the state of the vehicle parameter in response to executing the command. For example, the observer module 120 may determine a first value (e.g., an initial value) of a state of an angle of attack parameter of an aircraft. The observer module 120 may calculate a second value (e.g., an estimate value) of the state of the angle of attack parameter of the aircraft based on the aircraft executing the command. The observer module 120 may calculate a first difference between the first value and the second value.
In some examples, the observer module 120 compares the first difference to an error estimation value calculated external to the observer module 120 (e.g., calculated by the error module 190) to improve the observer module 120 state estimating functions. For example, the error estimation may be calculated based on a second difference between (1) the value of the state of the angle of attack parameter based on the measurement from the sensor and (2) the estimate value of the state of the angle of attack parameter calculated by the observer module 120. In some instances, the observer module 120 transmits the estimate value of the state of the vehicle parameter to the error module 190. In some examples, the observer module 120 determines whether the first difference and/or the second difference satisfies a threshold. For example, the observer module 120 may determine that the first difference does not satisfy a threshold (e.g., the first difference is less than 5 degrees). In another example, the observer module 120 may determine that the second difference satisfies the threshold (e.g., the second difference is greater than 5 degrees).
In some examples, the observer module 120 determines an estimate of a state of the vehicle and/or an estimate of a state of a parameter of the vehicle based on an obtained command. For example, the observer module 120 may determine an estimate of a state of a sideslip parameter of an aircraft based on a command obtained from the command input module 110. The observer module 120 may determine the estimate of the state based on the command obtained from the command input module 110, the measurement from the sensor (e.g., the angle of attack sensor, the accelerometer, the gyro sensor, etc.), the error estimation obtained by the observer module 120, etc. For example, the observer module 120 may determine a first value (e.g., an initial value) for a state of a vehicle parameter. The observer module 120 may additionally determine a second value (e.g., an estimate value) for the state of the vehicle parameter based on the vehicle executing the command obtained from the command input module 110. The observer module 120 may also determine a third value (e.g., an updated estimate of the state of the vehicle parameter) based on the difference between the first value and the second value. In some examples, the observer module 120 transmits the third value (e.g., the updated estimate of the state of the vehicle parameter) to the baseline control module 130.
In some instances, the observer module 120 performs a squaring-up modification to an input matrix and/or an output matrix of the observer model utilized by the observer module 120. In some examples, the observer module 120 adds a pseudo-output matrix to the output matrix of the observer model. In some instances, the observer module 120 adds a pseudo-input matrix to the input matrix of the observer model. For example, the observer module 120 may add the pseudo-input matrix, which includes fictitious inputs (i.e., inputs that do not represent physical inputs to the vehicle), to the input matrix of the observer model to make a number of inputs (e.g., controls) in the input matrix equal a number of outputs (e.g., measurements) in the output matrix. The observer module 120 makes the observer model used by the observer module 120 minimum phase (i.e., the vehicle transmission zeros are located in C−) by performing the squaring-up modification. During the squaring-up modification, the observer module 120 may place one or more zeros (e.g., transmission zeros) in a desired location utilizing a linear quadratic regulator (LQR) and/or a pole-placement algorithm. The observer module 120 may perform the squaring-up modification to satisfy one or more sufficient conditions. A first sufficient condition may be a relationship of p=m, where p represents a number of outputs and m represents a number of inputs. For example, the first sufficient condition may represent square dynamics of the observer model used by the observer module 120. A second sufficient condition may be a relationship of det(CB)≠0, where a determinant of an output matrix C and an input matrix B does not equal zero. For example, the second sufficient condition may represent a relative degree of one. A third sufficient condition may be a relationship of det
where s∈C−. For example, the third sufficient condition may include a determinant of a matrix including the input matrix B, the output matrix C, and a transfer function sI−A, where the determinant of the matrix equals zero, and where all zeros (e.g., transmission zeros) are in the open left half of the complex plane of the output matrix C (excluding the jw-axis). For example, the third sufficient condition may represent that the observer module 120 uses the observer model that includes one or more transmission zeros which are stable. In another example, the third sufficient condition may represent that the observer module 120 uses the observer model representing a system which is minimum phase.
In some examples, the observer module 120 performs the squaring-up modification by converting a tall system to a square system. For example, a tall, controllable, observable, and minimum-phase system with full rank Cmeas*B may be squared-up to satisfy the first, second, and third example sufficient conditions as described above, where the variable Cmeas represents the output matrix
An example tall system is described in Equation (8) below:
In the illustrated example of Equation (8) above, the variables A and B represent m-Inputs, the variables Cmeas and 0p×m represent p-Outputs, and the variable n represents the number of states. The observer module 120 may convert the example tall system described above in Equation (8) into an example square system as described in Equation (9) below:
In the illustrated example of Equation (9) above, the variables A and (B, B2) represent p-Inputs, the variables Cmeas and 0p×p represent p-Outputs, and the variable n represents the number of states. As described in Equation (9) above, the observer module 120 may add one or more fictitious inputs to the input matrix of B to yield a second input matrix (B, B2), where B2 is a pseudo-input matrix. The observer module 120 may replace the input matrix of B with the second input matrix (B, B2) in the first, second, and third example sufficient conditions as described above. The observer module 120 may satisfy the first, second, and third example sufficient conditions due to the following revised relationships
where the revised relationships are determined by at least Equation (9) above. For example, the revised relationships may represent that the pseudo-input matrix B2 generated during the squaring-up modification satisfies the first, second, and third example sufficient conditions as described above. As a result, the observer module 120 may utilize the input matrix
In some instances, the observer module 120 determines one or more symmetric, positive, definite, and parameter-dependent weight matrices for the observer model. For example, the observer module 120 may assign Q0∈Rn×n and R0∈Rm×m to be symmetric and positive definite, where Rn×n denotes the space of all n×n matrices, and where Rm×m denotes the space of all m×m matrices. The observer module 120 may determine one or more constants within Rn×n and/or Rm×m. For example, the observer module 120 may determine a value for constants v and/or η, where v>0 and η>0. The observer module 120 may determine two symmetric, positive, definite, and parameter-dependent weight matrices as described in Equation (10) and Equation (11) below:
The observer module 120 may use the constants v and/or η, Equation (10) above and/or Equation (11) above to evaluate a parameter-dependent Algebraic Riccati Equation (ARE) as described in Equation (12) below:
P
v(A+ηIn×n)T+(A+ηIn×n)Pv−PvCmeasTRv−1CmeasPv+Qv=0 Equation (12)
In the illustrated example of Equation (12) above, the variable Pv represents the unique, symmetric, positive, and definite solution for any positive value of the constants v and η. In the illustrated example of Equation (12) above, the variable A represents the observer matrix included in the observer model utilized by the observer module 120, and the variable In×n represents an identity matrix of size n×n. In some examples, the observer module 120 evaluates the asymptotic behavior of Pv as v→0 while holding η fixed. For example, the observer module 120 may use the asymptotic expansion as described below in Equation (13) to determine one or more asymptotic relations as described in Equation (14), Equation (15), and Equation (16) below as described below where the variable O represents Bachmann-Landau asymptotic order notation:
P
v
=P
0
+P
1
v+O(v2) Equation (13)
P
v
=P
0
+O(v) Equation (14)
P
v
−1
=P
0
−1
+O(v) Equation (15)
P
v
−1
meas
T
R
0
−1/2
W+O(v) Equation (16)
In some examples, the observer module 120 evaluates the asymptotic expansion described above in Equation (13) to determine the asymptotic relations as described above in Equation (14), Equation (15), and Equation (16) as v→0, with a constant, symmetric, positive, and definite matrix P0. In some instances, the observer module 120 evaluates Equation (16) above by applying a relationship of W=(UV)T, where the two unitary matrices, U and V, are defined by the singular value decomposition as described in Equation (17) below:
T
C
meas
T
R
0
−1/2
=UΣV Equation (17)
In the illustrated example of Equation (17) above, the symbol Σ represents the diagonal matrix of the corresponding singular values. In some instances, the illustrated examples described above in Equation (16) and Equation (17) guarantee strict positive definiteness of Pv and Pv−1 uniformly in v. The observer module 120 may utilize one or more of the above described equations to determine the observer gain Lv as described in Equation (18) below:
L
v
=P
v
C
meas
T
R
v
−1 Equation (18)
In the illustrated example of Equation (18) above, the variable Pv represents the unique solution described above in Equation (12), where Pv=PvT>0. The observer module 120 may utilize the relationship described above in Equation (18) to determine the closed-loop observer dynamics of the observer model of a system (e.g., a vehicle) as described in Equation (19) and Equation (20) below:
{circumflex over ({dot over (x)})}=A{circumflex over (x)}+Bubl+Bcmdycmd+Lv(ymeas−ŷmeas) Equation (19)
ŷ
meas
=C
meas
{circumflex over (x)} Equation (20)
In the illustrated example of Equation (19) above, the variable {circumflex over ({dot over (x)})} represents an estimate of an observer state derivative vector, the variable A represents a state matrix, and the variable {circumflex over (x)} represents an estimate of a state vector. Further, in the illustrated example of Equation (19) above, the variable B represents an input matrix, the variable Bcmd represents an input command matrix, and the variable ycmd represents an output command vector. In the illustrated example of Equation (19) above, the variable Lv represents the observer gain, the variable ymeas represents a measured output vector (e.g., a measurement from a sensor), and the variable ŷmeas represents an estimate of a measured output vector. Additionally, in the illustrated example of Equation (19) above, the variable ubl represents a baseline control input or a baseline control command (e.g., a value generated by the baseline control module 130), where ubl may be described in accordance with Equation (21) below:
u
bl
=−K
lqr
{circumflex over (x)} Equation (21)
In the illustrated example of Equation (21) above, the variable Klqr represents a constant Linear Quadratic Regulator (LQR) baseline control gain, where Klqr∈Rn×m. In the illustrated example of Equation (20) above, the variable Cmeas represents a measured output matrix. Further, in the illustrated example of Equation (20) above, the measured output vector ŷmeas tracks the bounded command ycmd described above in Equation (19) with uniformly bounded errors.
The observer module 120 may determine the variable Klqr such that an observer state matrix Aobs described below in Equation (22) becomes Hurwitz (i.e., every eigenvalue of Aobs has a strictly negative real part) and has one or more desired modal characteristics:
A
obs
=A−BK
lqr
−L
v
C
meas Equation (22)
The observer module 120 may apply Equation (22) above to Equation (20) above to yield Equation (23) as described below:
{circumflex over ({dot over (x)})}=Aobs{circumflex over (x)}+Bcmdycmd+Lvymeas Equation (23)
In some examples, the observer module 120 evaluates the relationship as described above in Equation (23) to recover LQR full state baseline feedback stability margins at the input to the vehicle plant. In some instances, the observer module 120 determines a value of the constant v to be sufficiently small to recover the LQR stability margins at the input to the observer model and/or the vehicle plant.
In the illustrated example of
In some examples, the baseline control module 130 includes integral error control mechanisms such as, for example, an integral controller transfer function representative of a servomechanism. The baseline control module 130 may obtain a guidance command r and/or an error value −e from the command input module 110. The baseline control module 130 may utilize an integral controller transfer function Ki/s to generate a baseline command utilized to generate the control input u. For example, the baseline control module 130 may apply the integral controller transfer function to the obtained guidance command to generate the baseline command. In some examples, the baseline control module 130 determines a difference between the baseline state of a vehicle parameter (e.g., the baseline command) and an estimate of a state of the vehicle parameter obtained from the observer module 120 (e.g., a state feedback stability value Kx, where x represents the state and/or the estimate of the state) to determine the control input u. The baseline control module 130 may determine the control input u as described in Equation (24) below:
u=−K
lqr
{circumflex over (x)} Equation (24)
In the illustrated example of Equation (24) above, the variable Klqr represents the constant LQR baseline control gain, where Klqr∈Rn×m and the variable {circumflex over (x)} represents the estimate of the state vector. The baseline control module 130 may further expand the relationship as described above in Equation (24) by replacing the variable {circumflex over (x)} in Equation (25) below:
u=−K
lqr(sIn×n−Aobs)−1(Bcmdycmd+Lvymeas) Equation (25)
In the illustrated example of Equation (25) above, the term (sIn×x−Aobs)−1 represents the transfer function of the observer model utilized by the observer module 120. The baseline control module 130 may determine the control input u based on Equation (25) above.
In the illustrated example of
In some examples, the vehicle module 140 includes one or more state-space relationships. The vehicle module 140 may obtain the control input (e.g., the control input u) from the baseline control module 130. The vehicle module 140 may achieve bounded command tracking in the vehicle. For example, the vehicle module 140 may evaluate the one or more state-space relationships using the control input u to determine a regulated output yreg to follow the external bounded time-varying command ycmd. The vehicle module 140 may be represented by the state-space relationships as described below in Equation (26), Equation (27), and Equation (28):
{dot over (x)}=Ax+BΛ(u+Θ7Φ(x))+Brefycmd Equation (26)
y=Cx Equation (27)
y
reg
=C
reg
x Equation (28)
In the illustrated example of Equation (26) above, the state matrix A, the input matrix B, and the reference input matrix Bref, are known matrices, where A∈Rn×n, (B, Bref)∈Rn×m. In some examples, (A, B) is controllable and rank B=m (i.e., B has full column rank). In some instances, (A, C) is observable and rank C=p (i.e., C has full row rank). In some examples, the number of outputs (e.g., measured outputs) is greater than the number of inputs (e.g., control inputs) (i.e., p>m) where rank (CB)=m. In the illustrated example of Equation (26) above, the system state is x∈Rn, and the control input is u∈Rm. Further, in the illustrated example of Equation (26) above, the variable Λ is a constant unknown non-singular positive diagonal matrix representing the system uncertainties where Λ∈Rm×m. Additionally, in the illustrated example of Equation (26) above, the variable Θ is a constant unknown matrix where Θ∈Rn×m, and the variable Φ represents a known regressor vector where Φ∈Rn. In some examples, the regressor is globally Lipschitz continuous in x, where there exists a finite positive known constant 0<LΦ<∞, such that the relationship described below in Equation (29) holds true for any x1, x2∈Rn:
∥Φ(x1)−Φ(x2)∥≤LΦ∥x1−x2∥ Equation (29)
In the illustrated examples of Equation (27) above and Equation (28) above, the output matrix C and the regulated output matrix Creg are known matrices, where C∈Rp×n and Creg∈Rm×n. In the illustrated examples of Equation (27) above and Equation (28) above, the system measurements are grouped into y∈Rp, the regulated output is yreg∈Rm, and ycmd∈Rm denotes the external bounded time-varying command for yreg to track. In the illustrated example of Equation (28) above, the regulated output dynamics (e.g., the regulated outputs yreg) can be non-minimum phase and have a vector relative degree greater than unity.
In the illustrated example of
In the illustrated example of
In the illustrated example of
In some examples, the collection module 170 selects obtained sensor measurements of interest to be used by one or more algorithms, processes, programs, etc. deployed by the vehicle control apparatus 100. For example, the collection module 170 may process a value from a sensor measurement by converting (e.g., converting using a conversion calculation, converting to different units of measure, etc.), scaling (e.g., scaling using a scaling factor), and/or translating (e.g., translating using a pre-determined curve, translating using a pre-determined equation) the value from the sensor measurement for use by the observer module 120 and, more generally, the vehicle control apparatus 100. In some examples, the collection module 170 selects the sensor measurement by querying the database 180. In response to the database 180 receiving the query sent from the collection module 170, the database 180 transmits the sensor measurement to the collection module 170. In some examples, the collection module 170 obtains a query from the observer module 120 and/or the error module 190 for a sensor measurement of interest. In response to the collection module 170 receiving the query, the collection module 170 may transmit the sensor measurement of interest to the observer module 120 and/or the error module 190.
In the illustrated example of
In the illustrated example of
While an example manner of implementing the vehicle control apparatus 100 is illustrated in
In the illustrated example of
u=u
bl
+u
ad Equation (30)
In the illustrated example of Equation (30) above, the variable ubl represents the baseline control input and the variable uad represents an adaptive incremental control or an adaptive control input. For example, the vehicle module 140 may obtain the baseline control input from the baseline control module 130 via the adder module 210. In another example, the vehicle module 140 may obtain the adaptive control input from the adaptive control module 220 via the adder module 210. The vehicle control apparatus 200 includes the adder module 210 to generate the control input based on an addition of the baseline control input the adaptive control input as described above in Equation (30). In response to the adder module 210 generating the control input, the adder module 210 transmits the control input to the vehicle module 140.
In some examples, the vehicle module 140 includes one or more state-space relationships based on the adaptive control input. For example, the vehicle module 140 may evaluate the one or more state-space relationships using the control input u to determine a regulated output yreg to follow the external bounded time-varying command ycmd. The vehicle module 140 may be represented by the state-space relationships as described below in Equation (31), Equation (32), and Equation (33):
{dot over (x)}=Ax+Bu
bl
+BΛ(uad+ΘTΦ(x)+(Im×m−Λ−1)ubl)+Brefycmd Equation (31)
T=ΘTIm×m−Θ−1 Equation (32)
The vehicle module 140 may apply Equation (32) above and Equation (33) above to Equation (31) above to yield Equation (34) as described below:
{dot over (x)}=Ax+Bu
bl
+BΛ(uad+
The vehicle module 140 may execute the control input. In response to the vehicle module 140 executing the control input, the vehicle module 140 may determine the state of the vehicle and/or the state of the vehicle parameter based on calculating the observer state vector 2 as described above in Equation (34). In response to the vehicle module 140 obtaining the adaptive control input from the adaptive control module 220, the observer module 120 may update the estimate of the observer state vector relationship to be in accordance with Equation (35) as described below:
{circumflex over ({dot over (x)})}=A{circumflex over (x)}+Bubl+B{circumflex over (Λ)}(uad+
In some examples, the observer module 120 determines an estimate value for the state of the vehicle and/or the state of the parameter of the vehicle using Equation (35) above. For example, the observer module 120 may use Equation (35) above to determine an estimate value for a state of a pitch rate parameter of an aircraft based on the aircraft executing the control input, where the control input actuates an aircraft control surface (e.g., an elevator, a flap, a slat, etc.).
In the illustrated example of
In some examples, the adaptive control module 220 determines an adaptive control input or adaptive control command to be in accordance with Equation (36) as described below:
u
ad=−
In the illustrated example of Equation (36) above, the variables
{circumflex over ({dot over (x)})}=A{circumflex over (x)}+Bubl+Lv(y−ŷ)+Brefycmd Equation (37)
In the illustrated example of Equation (37) above, the observer module 120 simplifies the observer dynamics by producing a linear estimate of the observer state vector relationship. In response to the adaptive control module 220 determining the adaptive control input as described above in Equation (36), the baseline control module 130 may determine the baseline control input to be in accordance with Equation (38) as described below:
u
bl
=−K
bl
T
{circumflex over (x)} Equation (38)
In the illustrated example of Equation (38) above, the baseline control module 130 may determine the constant gain Kbl, where Kbl∈Rn×m, to be in accordance with Equation (39) as described below:
A
ref
=A−BK
bl
T Equation (39)
The observer module 120 may determine the variable Kbl such that a reference observer state matrix Aref described above in Equation (39) becomes Hurwitz (i.e., every eigenvalue of Aref has a strictly negative real part) and has one or more desired modal characteristics. The observer module 120 may apply Equation (38) above to Equation (37) above to determine an observer model described below in Equation (40) and Equation (41) based on the adaptive control input generated by the adaptive control module 220:
{dot over (x)}
ref
=A
ref
x
ref
+B
ref
y
cmd Equation (40)
y
ref
=C
reg
x
ref Equation (41)
In the illustrated example of Equation (40) above and Equation (41) above, the observer model represents an ideal reference observer model. In the illustrated example of Equation (41) above, the output yref may be designed (e.g., through a proper selection of Kbl) to adequately track a bounded command ycmd with sufficiently small errors (e.g., errors small enough to avoid destabilizing the vehicle). In some examples, the observer module 120 utilizes the observer model as described above in Equation (40) and Equation (41) to provide additional roll-off in comparison to the roll-off provided by an LQR state feedback. For example, the observer module 120 may provide an approximately 20 dB roll-off to the vehicle system (e.g., the vehicle control apparatus 100, the vehicle control apparatus 200, etc.).
In the illustrated example of Equation (37) above, the observer module 120 does not determine the estimate of the observer state derivative vector {circumflex over ({dot over (x)})} based on a value of {circumflex over (Λ)}. As a result, the observer module 120 may determine an estimate for the variable
{dot over (x)}=Ax+Bu
bl
−BΛ(
The observer module 120 may determine the estimate of the observer state derivative vector {circumflex over ({dot over (x)})} and the observer state derivative vector {dot over (x)} based on the two design parameters (Lv,
In the illustrated example of
In some examples, the adaptive control module 220 utilizes and/or generates an adaptive control law based on the error estimation value obtained from the error module 230. For example, the state observation error ex (e.g., ex={circumflex over (x)}−x) may not be available to the vehicle control apparatus 200. However, the output observation error ey may be available to the vehicle control apparatus 200. For example, the output observation error (e.g., the error estimation value) may be represented by a relationship as described below in Equation (43):
e
y
=ŷ−y=C({circumflex over (x)}−x)=Cex Equation (43)
The estimate of the output vector ŷ may be generated by and/or obtained from the observer module 120. The output vector y may be obtained from the collection module 170. The error module 230 may determine the observer error dynamics by determining the difference between the estimate of the observer state vector {circumflex over ({dot over (x)})} and the observer state vector {dot over (x)}. For example, the error module 230 may subtract Equation (42) above from Equation (37) above. The subtraction may result in Equation (44) as described below:
ė
x=(A−LvC)ex+BΛ(
In some examples, the error module 230 transmits the observer state observation error ėx to the observer module 120 to improve the estimating state functions of the observer module 120. In some instances, the error module 230 transmits the observer state observation error ėx to the adaptive control module 220 to improve the adaptive control functionality of the adaptive control module 220 (e.g., generate a new control law, eliminate a control law, modify a control law, etc.).
In some examples, the adaptive control module 220 utilizes and/or generates an adaptive control law (e.g., a stable adaptive law) in accordance with Equation (45) as described below where ΓΘ=ΓΘT>0:
V(ex,Δ
In the illustrated example of Equation (45) above, the variable “ΓΘ” represents the adaptation rate matrix and the variable Δ
In the illustrated example of Equation (46) above, the variable S is denoted by the relationship S=(Im×m0(p−m)×m). The adaptive control module 220 may use the projection-based adaptive law as described above in Equation (46) with a sufficiently small v (e.g., v>0), to determine that a time derivative of the Lyapunov function as described above in Equation (46) evaluated along the trajectories of the error dynamics of Equation (44) above (e.g., the observer state observation error ėx) is non-positive as described below in Equation (47):
In the illustrated example of Equation (47) above, the time derivative of the Lyapunov function is non-positive outside of the compact set of Ωr as described below in Equation (48):
In the illustrated example of Equation (47) above, the error module 230 may determine that in some finite time T=T(v), the observer tracking error ex enters the maximum level set of V inscribed into the set Ωr of Equation (48) above, where V remains afterwards for all t≥T. The error module 230 may determine that the norm of the system state tracking error e (e.g., e=x−xref) is upper-bounded as described below in Equation (49):
In the illustrated example of Equation (48) above, the observer module 120 may determine the set radius r to be arbitrarily small by selecting a sufficiently small v and/or a sufficiently large η. Asymptotically, the observer module 120 may decrease the upper bound on the tracking error arbitrarily via a proper selection of v and η. As a result, the observer module 120 may adjust the performance of the observer model by adjusting the two constants v and η, where the two constants are the tuning parameters (e.g., the design parameters) of the observer model.
While an example manner of implementing the vehicle control apparatus 200 is illustrated in
In the illustrated example of
In the illustrated example of
In the illustrated example of block 330, the variables A, B, and Bcmd represent the state matrix of the vehicle, the input matrix of the vehicle, and the gain command matrix of the vehicle, respectively. The variables A, B, and Bcmd are represented by the equations as described in block 350. In the illustrated example, the state matrix A is based on the variables 0m×m, 0n
In the illustrated example of
In the illustrated example of
In the illustrated example of
In the illustrated example of
In the illustrated example of
In the illustrated example of
In the illustrated example of
A flowchart representative of an example method for implementing the example vehicle control apparatus 100, 200, 300, 400 of
As mentioned above, the example method of
At block 608, the vehicle control apparatus 100, 200, 300, 400 generates a baseline command. For example, the baseline control module 130 may generate a baseline command for the aircraft based on the estimate of the state of the angle of attack parameter of the aircraft. At block 610, the vehicle control apparatus 100, 200, 300, 400 determines whether vehicle control includes adaptive control. For example, the adaptive control module 220 may modify a value of a flag (e.g., a flag in computer and/or machine readable instructions) alerting the vehicle control apparatus 200 that the adaptive control module 220 exists and/or functions. If, at block 610, the vehicle control apparatus 100, 200, 300, 400 determines that the vehicle control does not include adaptive control, control proceeds to block 614 to determine a control input. If, at block 610, the vehicle control apparatus 100, 200, 300, 400 determines that the vehicle control does include adaptive control, then, at block 612, the vehicle control apparatus 100, 200, 300, 400 generates an adaptive control command. For example, the adaptive control module 220 may generate an adaptive control command for the aircraft based on a control law (e.g., an adaptive control law).
At block 614, the vehicle control apparatus 100, 200, 300, 400 determines the control input. For example, the baseline control module 130 may determine the control input (e.g., the control input u) based on the guidance command (e.g., the guidance command r) and/or the estimate of the state of the angle of attack parameter for the aircraft. In another example, the adder module 210 may determine the control input (e.g., the control input u) based on the baseline control command (e.g., the baseline control input ubl) and/or the adaptive control command (e.g., the adaptive control input uad). At block 616, the vehicle control apparatus 100, 200, 300, 400 executes a command. For example, the vehicle module 140 may execute the command based on the control input (e.g., the control input u). At block 618, the vehicle control apparatus 100, 200, 300, 400 measures a state of the vehicle parameter. For example, the collection module 170 may measure the state of the angle of attack parameter based on a measurement from a sensor (e.g., an acceleration sensor, an angular rate sensor, etc.). In another example, the observer module 120 may measure the state of the angle of attack parameter based on the measurement from the sensor 150 obtained by the collection module 170.
At block 620, the vehicle control apparatus 100, 200, 300, 400 calculates a difference between the measured state and the estimate of the state. For example, the error module 190 may determine the difference between (1) the measured state of the angle of attack parameter based on the measurement from the sensor 150 obtained by the collection module 170 and (2) the estimate of the state of the angle of attack parameter determined by the observer module 120. In another example, the error module 230 may determine the difference between (1) the measured state of the angle of attack parameter based on the measurement from the sensor 150 obtained by the collection module 170 and (2) the estimate of the state of the angle of attack parameter determined by the observer module 120. At block 622, the vehicle control apparatus 100, 200, 300, 400 determines whether the difference satisfies a threshold. For example, the observer module 120 may determine whether the difference satisfies an estimation error threshold (e.g., the difference is greater than 5 degrees, the difference is less than 10 radians/second, etc.). If, at block 622, the vehicle control apparatus 100, 200, 300, 400 determines that the difference does not satisfy the threshold, control returns to block 602 to generate another guidance command, otherwise the example method 600 concludes.
The processor platform 700 of the illustrated example includes a processor 712. The processor 712 of the illustrated example is hardware. For example, the processor 712 can be implemented by one or more integrated circuits, logic circuits, microprocessors or controllers from any desired family or manufacturer.
The processor 712 of the illustrated example includes a local memory 713 (e.g., a cache). The processor 712 of the illustrated example executes the instructions to implement the example vehicle control apparatus 100, 200, 300, 400 comprising the example command input module 110, the example observer module 120, the example baseline control module 130, the example vehicle module 140, the example sensor 150, the example network 160, the example collection module 170, the example error module 190, the example adder module 210, the example adaptive control module 220, the example error module 230, the example observer module 310, the example baseline control module 320, the example observer module 410, and the example baseline control module 420. The processor 712 of the illustrated example is in communication with a main memory including a volatile memory 714 and a non-volatile memory 716 via a bus 718. The volatile memory 714 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS Dynamic Random Access Memory (RDRAM) and/or any other type of random access memory device. The non-volatile memory 716 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 714, 716 is controlled by a memory controller.
The processor platform 700 of the illustrated example also includes an interface circuit 720. The interface circuit 720 may be implemented by any type of interface standard, such as an Ethernet interface, a universal serial bus (USB), and/or a PCI express interface.
In the illustrated example, one or more input devices 722 are connected to the interface circuit 720. The input device(s) 722 permit(s) a user to enter data and commands into the processor 712. The input device(s) can be implemented by, for example, an audio sensor, a microphone, a camera (still or video), a keyboard, a button, a mouse, a touchscreen, a track-pad, a trackball, isopoint, and/or a voice recognition system.
One or more output devices 724 are also connected to the interface circuit 720 of the illustrated example. The output devices 724 can be implemented, for example, by display devices (e.g., a heads-up display, a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display, a cathode ray tube display (CRT), a touchscreen, a tactile output device, a printer and/or speakers). The interface circuit 720 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip, or a graphics driver processor.
The interface circuit 720 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem and/or network interface card to facilitate exchange of data with external machines (e.g., computing devices of any kind) via a network 726 (e.g., an Ethernet connection, a digital subscriber line (DSL), a telephone line, coaxial cable, a cellular telephone system, etc.).
The processor platform 700 of the illustrated example also includes one or more mass storage devices 728 for storing software and/or data. Examples of such mass storage devices 728 include floppy disk drives, hard drive disks, magnetic media, compact disk drives, Blu-ray disk drives, RAID systems, and digital versatile disk (DVD) drives. The example mass storage 728 implements the example database 180.
Coded instructions 732 to implement the method of
From the foregoing, it will be appreciated that the above disclosed methods, apparatus, and articles of manufacture provide observer-based control of a vehicle. The above disclosed vehicle control apparatus can determine a command to control the vehicle based on determining and/or estimating one or more states of a vehicle parameter. The above disclosed vehicle control apparatus can perform state feedback margin recovery while increasing robustness at high frequencies. In addition, the above disclosed vehicle control apparatus may implement adaptive control to control the vehicle when one or more vehicle parameter states are unknown.
Although certain example methods, apparatus and articles of manufacture have been disclosed herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all methods, apparatus and articles of manufacture fairly falling within the scope of the claims of this patent.
This patent arises from a continuation of U.S. patent application Ser. No. 15/465,066, which was filed on Mar. 21, 2017. U.S. patent application Ser. No. 15/465,066 is hereby incorporated herein by reference in its entirety. Priority to U.S. patent application Ser. No. 15/465,066 is hereby claimed.
Number | Date | Country | |
---|---|---|---|
Parent | 15465066 | Mar 2017 | US |
Child | 16271106 | US |