Skip to content

Commit abb7a5d

Browse files
committed
add LinMPC to docs env
1 parent 7edbc14 commit abb7a5d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ControlSystemsBase = "aaaaaaaa-a6ca-5380-bf3e-84a91bcd477e"
33
DisplayAs = "0b91fe84-8a4c-11e9-3e1d-67c38462b6d6"
44
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
55
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
6+
LinearMPC = "82e1c212-e1a2-49d2-b26a-a31d6968e3bd"
67
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
78
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
89
RobustAndOptimalControl = "21fd56a4-db03-40ee-82ee-a87907bee541"

ext/RobustAndOptimalControlLinearMPCExt.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module RobustAndOptimalControlLinearMPCExt
88
using LinearMPC
99
using LinearAlgebra
1010
using RobustAndOptimalControl: LQGProblem
11+
using ControlSystemsBase: isdiscrete
1112

1213

1314
"""
@@ -58,7 +59,7 @@ function LinearMPC.MPC(prob::LQGProblem;
5859
kwargs...
5960
)
6061
# Validate discrete-time system
61-
if !ControlSystemsBase.isdiscrete(prob)
62+
if !isdiscrete(prob)
6263
error("Only discrete-time systems are supported. Got a continuous-time system.")
6364
end
6465

0 commit comments

Comments
 (0)