Skip to content

Commit

Permalink
Merge pull request #181 from CooperUnion/user/jacobkoziej/igvc-report…
Browse files Browse the repository at this point in the history
…-setup

IGVC Report Setup
  • Loading branch information
jacobkoziej authored Apr 12, 2024
2 parents 6ae379c + d120d27 commit dbf3f70
Show file tree
Hide file tree
Showing 23 changed files with 458 additions and 267 deletions.
10 changes: 10 additions & 0 deletions .latexindent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

defaultIndent: ' '
removeTrailingWhitespace: 1

modifyLineBreaks:
preserveBlankLines: 1
condenseMultipleBlankLinesInto: 1
textWrapOptions:
columns: 72
14 changes: 12 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.2.0
rev: 24.3.0
hooks:
- id: black

- repo: https://github.com/cmhughes/latexindent.pl.git
rev: V3.23.6
hooks:
- id: latexindent
args:
- --local
- --modifylinebreaks
- --overwrite
- --silent

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.1
hooks:
Expand All @@ -42,7 +52,7 @@ repos:
- id: nixpkgs-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
rev: v0.3.5
hooks:
- id: ruff

Expand Down
14 changes: 13 additions & 1 deletion SConstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import env as uenv

EnsureSConsVersion(4, 6, 0)
EnsureSConsVersion(4, 7, 0)
EnsurePythonVersion(3, 12)


Expand Down Expand Up @@ -48,6 +48,7 @@
'EspIdf',
'OpenCan',
'Phony',
'Project',
],
)
env.AppendUnique(
Expand All @@ -59,6 +60,13 @@
'-std=gnu17',
]
)
env.AppendUnique(
PDFLATEXFLAGS=[
'--halt-on-error',
'--shell-escape',
]
)
env.Replace(PDFLATEX='lualatex')

if not env['VERBOSE']:
commands = [
Expand Down Expand Up @@ -97,3 +105,7 @@
variant_dir=f'{build}/dbw/ember_bl',
duplicate=False,
)
projects = env.SConscript(
'projects/SConscript.py',
variant_dir=f'{build}/projects',
)
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
pkgs.mdbook
pkgs.ninja
pkgs.nixpkgs-fmt
pkgs.texliveFull
pkgs.zlib
python
pythonPackages.invoke
Expand Down
16 changes: 16 additions & 0 deletions projects/SConscript.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ruff: noqa: F821

Import('env')


projects = env.SConscript(
[
f'{project}/SConscript.py'
for project in [
'g-wagon',
]
]
)


Return('projects')
12 changes: 12 additions & 0 deletions projects/g-wagon/SConscript.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# ruff: noqa: F821

Import('env')


igvc_report = env.SConscript('igvc-report/SConscript.py')

project, name = env.Project(env.Dir('.'), env.File('project.toml'))
env.ProjectSubtarget(name, 'igvc-report', igvc_report)


Return('project')
9 changes: 9 additions & 0 deletions projects/g-wagon/igvc-report/SConscript.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ruff: noqa: F821

Import('env')


igvc_report = env.PDF('igvc-report.tex')


Return('igvc_report')
2 changes: 2 additions & 0 deletions projects/g-wagon/igvc-report/abstract.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
\begin{abstract}
\end{abstract}
1 change: 1 addition & 0 deletions projects/g-wagon/igvc-report/background.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{Background}
1 change: 1 addition & 0 deletions projects/g-wagon/igvc-report/cyber-security.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{Cyber Security}
7 changes: 7 additions & 0 deletions projects/g-wagon/igvc-report/design.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
\section{Design}

\subsection{Mechanical}

\subsection{Electrical}

\subsection{Software}
16 changes: 16 additions & 0 deletions projects/g-wagon/igvc-report/igvc-report.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
% <https://journals.aas.org/aastexguide/>
\documentclass[linenumbers]{aastex631}

\input{preamble}

\begin{document}
\include{title}
\include{abstract}
\include{background}
\include{system-architecture}
\include{innovations}
\include{design}
\include{cyber-security}
\include{system-analysis}
\include{unit-tests}
\end{document}
1 change: 1 addition & 0 deletions projects/g-wagon/igvc-report/innovations.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{Innovations}
26 changes: 26 additions & 0 deletions projects/g-wagon/igvc-report/preamble.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
\usepackage{graphicx}

\usepackage{hyperref}
\hypersetup{
hidelinks,
pdfinfo = {
Title = IGVC Design Report,
Author = The Cooper Union for the Advancement of Science and Art,
Subject = Autonomous Vehicles,
Keywords = {IGVC},
},
}
\usepackage{csquotes}
\usepackage{bookmark}

\journalinfo{\emph{\enquote{It had to be done}}}

\NewDocumentCommand{\member}{mm}{
\author{#1 \href{mailto:#[email protected]}{\texttt{<#[email protected]>}}}
\affiliation{The Cooper Union for the Advancement of Science and Art}
}
\NewDocumentCommand{\memberSpecial}{mmm}{
\author{#1 \href{mailto:#[email protected]}{\texttt{<#[email protected]>}}}
\altaffiliation{#3}
\affiliation{The Cooper Union for the Advancement of Science and Art}
}
1 change: 1 addition & 0 deletions projects/g-wagon/igvc-report/system-analysis.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{System Analysis}
1 change: 1 addition & 0 deletions projects/g-wagon/igvc-report/system-architecture.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{System Architecture}
11 changes: 11 additions & 0 deletions projects/g-wagon/igvc-report/title.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
\belowpdfbookmark{IGVC Design Report}{title}
\title{
IGVC Design Report --- The \enquote{g-wagon}
}

\memberSpecial{Jacob Koziej}{jacob.koziej}{Team Captain}

\member{Jeannette Circe}{circe}
\member{Ridwan Hussain}{ridwan.hussain}

\memberSpecial{Michael Giglia}{michael.giglia}{Faculty Advisor}
1 change: 1 addition & 0 deletions projects/g-wagon/igvc-report/unit-tests.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\section{Unit Tests}
2 changes: 2 additions & 0 deletions projects/g-wagon/project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
name = 'g-wagon'
Loading

0 comments on commit dbf3f70

Please sign in to comment.