Skip to content

Commit

Permalink
Rename "Installing Python Control" chapter
Browse files Browse the repository at this point in the history
It's renamed to "Installing Python Packages" since the instructions
apply to any package. Also, only mention frccontrol in the remark at the
top of the "Intro to modern control" chapter because that's the only
package the user needs to install manually.
  • Loading branch information
calcmogul committed Aug 20, 2018
1 parent cce81a2 commit 8af4a8e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 33 deletions.
29 changes: 0 additions & 29 deletions appendices/installing-python-control.tex

This file was deleted.

35 changes: 35 additions & 0 deletions appendices/installing-python-packages.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
\chapterimage{appendices.jpg}{Sunset in an airplane over New Mexico}
\chapter{Installing Python packages} \label{ch:installing_python_packages}

\section{Windows instructions}

To install Python, download the installer for Python 3.5 or higher from
\url{https://www.python.org/downloads/} and run it.

To install Python packages, run \texttt{py -3 -m pip install pkg} via cmd.exe or
Powershell where \texttt{pkg} should be the name of the package. Packages can be
upgraded with \texttt{py -3 -m pip install --user --upgrade pkg}.

\section{Linux instructions}

To install Python, install the appropriate packages from table
\ref{tab:required_system_packages} using your system's package manager.

\begin{booktable}
\begin{tabular}{|ll|}
\hline
\rowcolor{headingbg}
\textbf{Debian/Ubuntu} & \textbf{Arch Linux} \\
\hline
python3 & python \\
python3-pip & python-pip \\
\hline
\end{tabular}
\caption{Required system packages}
\label{tab:required_system_packages}
\end{booktable}

To install Python packages, run \texttt{pip3 install --user pkg} where
\texttt{pkg} should be the name of the package. Using \texttt{--user} makes
installation not require root privileges. Packages can be upgraded with
\texttt{pip3 install --user --upgrade pkg}.
6 changes: 3 additions & 3 deletions modern-control-theory-notation/intro-to-modern-control.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
\chapter{Introduction to modern control}

\begin{remark}
Chapters from here on use Python Control to demonstrate the concepts discussed
and perform the complex math required. See appendix
\ref{ch:installing_python_control} for how to install it.
Chapters from here on use the \texttt{frccontrol} Python package to
demonstrate the concepts discussed and perform the complex math required. See
appendix \ref{ch:installing_python_packages} for how to install it.
\end{remark}

Modern control theory uses state-space representation to model and control
Expand Down
2 changes: 1 addition & 1 deletion state-space-guide.tex
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ \part{Appendices}
\appendix
\renewcommand*{\partpath}{appendices}
\input{\partpath/simplifying-block-diagrams}
\input{\partpath/installing-python-control}
\input{\partpath/installing-python-packages}
\input{\partpath/ss-canonical-forms}
\input{\partpath/derivations}

Expand Down

0 comments on commit 8af4a8e

Please sign in to comment.