Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mattdr
supermileage_2018
Commits
87d93209
Commit
87d93209
authored
Mar 01, 2019
by
thcl
Browse files
3-1-2019
parent
fa17aef0
Changes
5
Hide whitespace changes
Inline
Side-by-side
source_code/Teensy32/.vscode/settings.json
View file @
87d93209
{
"terminal.integrated.env.windows"
:
{
"PATH"
:
"C:
\\
Users
\\
M
at
t
\\
.platformio
\\
penv
\\
Scripts;C:
\\
Users
\\
M
at
t
\\
.platformio
\\
penv;C:
\\
Program
Files
\\
Dell
\\
DW WLAN Card
;C:
\\
WINDOWS
\\
system32;C:
\\
WINDOWS;C:
\\
WINDOWS
\\
System32
\\
Wbem;C:
\\
WINDOWS
\\
System32
\\
WindowsPowerShell
\\
v1.0
\\
;
c
:
\\
Program Files
\\
WIDCOMM
\\
Bluetooth Software
\\
;c:
\\
Program Files
\\
WIDCOMM
\\
Bluetooth Software
\\
syswow64
;C:
\\
WINDOWS
\\
s
ystem32
\\
config
\\
systemprofile
\\
.dnx
\\
bin;C:
\\
Program Files
\\
Microsoft DNX
\\
Dnvm
\\
;C:
\\
Program Files (x86)
\\
Windows Kits
\\
8.1
\\
Windows Performance Toolkit
\\
;C:
\\
Program Files
\\
Microsoft SQL Server
\\
130
\\
Tools
\\
Binn
\\
;C:
\\
Program Files
\\
PuTTY
\\
;C:
\\
Program Files (x86)
\\
Xoreax
\\
IncrediBuild;C:
\\
Program Files
\\
MATLAB
\\
R2017b
\\
runtime
\\
win64;C:
\\
Program Files
\\
MATLAB
\\
R2017b
\\
bin;C:
\\
WINDOWS
\\
System32
\\
OpenSSH
\\
;C:
\\
Program Files
\\
Git
\\
cmd;C:
\\
Program Files
\\
Gi
t
\\
m
in
gw64
\\
bin;C:
\\
Program Files
\\
Git
\\
usr
\\
bin;C:
\\
Program Files (x86)
\\
Microsoft VS Code
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
mingw-w64
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
usr
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Scripts;C:
\\
Users
\\
Matt
\\
AppData
\\
Local
\\
Microsoft
\\
WindowsApps;C:
\\
Program Files (x86)
\\
Microsoft VS Code
\\
bin;C:
\\
Users
\\
Matt
\\
AppData
\\
Local
\\
Programs
\\
Microsoft VS Code
\\
bin;C:
\\
Program Fi
le
s
\\
Dell
\\
DW WLAN Card
;C:
\\
WINDOWS
\\
system32;C:
\\
WINDOWS;C:
\\
WINDOWS
\\
System32
\\
Wbem;C:
\\
WINDOWS
\\
System32
\\
WindowsPowerShell
\\
v1.0
\\
;
c:
\\
Program Files
\\
WIDCOMM
\\
Bluetooth Software
\\
;c:
\\
Program Files
\\
WIDCOMM
\\
Bluetooth Software
\\
syswow64;C:
\\
WINDOWS
\\
system32
\\
config
\\
systemprofile
\\
.dnx
\\
bin;C:
\\
Program Files
\\
Microsoft DNX
\\
Dnvm
\\
;C:
\\
Program Files (x86)
\\
W
in
dows Kits
\\
8.1
\\
Windows Performance Toolkit
\\
;C:
\\
Program Files
\\
Microsoft SQL Server
\\
130
\\
Tools
\\
Binn
\\
;C:
\\
Program Files
\\
PuTTY
\\
;C:
\\
Program Files (x86)
\\
Xoreax
\\
IncrediBuild;C:
\\
Program Files
\\
MATLAB
\\
R2017b
\\
runtime
\\
win64;C:
\\
Program Files
\\
MATLAB
\\
R2017b
\\
bin;C:
\\
WINDOWS
\\
System32
\\
OpenSSH
\\
;C:
\\
Program Files
\\
Git
\\
cmd;C:
\\
Program Files
\\
Git
\\
mingw64
\\
bin;C:
\\
Program Files
\\
Git
\\
usr
\\
bin;C:
\\
Program Files (x86)
\\
Microsoft
VS Code
\\
b
in
;C:
\\
Users
\\
Matt
\\
Anaconda3
;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
mingw-w64
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
usr
\\
bin;C:
\\
Users
\\
Matt
\\
Anaconda3
\\
Library
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Scripts;C:
\\
Users
\\
Matt
\\
AppData
\\
Local
\\
Microsoft
\\
WindowsApps;C:
\\
Program Files (x86)
\\
Microsoft VS Code
\\
bin;C:
\\
Users
\\
M
at
t
\\
AppData
\\
Local
\\
Programs
\\
Microsoft VS Code
\\
bin"
,
"PATH"
:
"C:
\\
Users
\\
z
at
ar
\\
.platformio
\\
penv
\\
Scripts;C:
\\
Users
\\
z
at
ar
\\
.platformio
\\
penv;C:
\\
Program
Data
\\
Anaconda3;C:
\\
ProgramData
\\
Anaconda3
\\
Library
\\
mingw-w64
\\
bin;C:
\\
ProgramData
\\
Anaconda3
\\
Library
\\
usr
\\
bin;C:
\\
ProgramData
\\
Anaconda3
\\
Library
\\
bin;C:
\\
ProgramData
\\
Anaconda3
\\
Scripts;C:
\\
Program Files (x86)
\\
Common Files
\\
Oracle
\\
Java
\\
javapath
;C:
\\
WINDOWS
\\
system32;C:
\\
WINDOWS;C:
\\
WINDOWS
\\
System32
\\
Wbem;C:
\\
WINDOWS
\\
System32
\\
WindowsPowerShell
\\
v1.0
\\
;
C
:
\\
Program Files
\\
MiKTeX 2.9
\\
miktex
\\
bin
\\
x64
\\
;C:
\\
WINDOWS
\\
S
ystem32
\\
OpenSSH
\\
;C:
\\
Program Files
\\
PuTTY
\\
;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
Microsoft
\\
WindowsApps;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
GitHubDesktop
\\
bin;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
Microsof
t
\\
W
in
dowsApps;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
Programs
\\
Microsoft VS Code
\\
bin;c:
\\
Cygwin64
\\
bin;;C:
\\
ProgramD
at
a
\\
Anaconda3;C:
\\
ProgramD
at
a
\\
Anaconda3
\\
Library
\\
mingw-w64
\\
bin;C:
\\
ProgramD
at
a
\\
Anaconda3
\\
Library
\\
usr
\\
bin;C:
\\
ProgramD
at
a
\\
Anaconda3
\\
Library
\\
bin;C:
\\
ProgramD
at
a
\\
Anaconda3
\\
Scripts;C:
\\
Program Files (x86)
\\
Common Files
\\
Orac
le
\\
Java
\\
javapath
;C:
\\
WINDOWS
\\
system32;C:
\\
WINDOWS;C:
\\
WINDOWS
\\
System32
\\
Wbem;C:
\\
WINDOWS
\\
System32
\\
WindowsPowerShell
\\
v1.0
\\
;
C:
\\
Program Files
\\
MiKTeX 2.9
\\
miktex
\\
b
in
\\
x64
\\
;C:
\\
WINDOWS
\\
System32
\\
OpenSSH
\\
;C:
\\
Program Files
\\
PuTTY
\\
;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
Microsoft
\\
W
in
dowsApps
;C:
\\
Users
\\
z
at
ar
\\
AppD
at
a
\\
Local
\\
GitHubDesktop
\\
bin;C:
\\
Users
\\
z
at
ar
\\
AppData
\\
Local
\\
Microsoft
\\
WindowsApps;C:
\\
Users
\\
z
at
ar
\\
AppData
\\
Local
\\
Programs
\\
Microsoft VS Code
\\
bin
;c:
\\
Cygwin64
\\
bin;
"
,
"PLATFORMIO_CALLER"
:
"vscode"
}
}
\ No newline at end of file
source_code/Teensy35/.vscode/extensions.json
View file @
87d93209
{
//
See
http://go.microsoft.com/fwlink/?LinkId=
827846
//
for
the
documentation
about
the
extensions.json
format
"recommendations"
:
[
"platformio.platformio-ide"
]
{
//
See
http://go.microsoft.com/fwlink/?LinkId=
827846
//
for
the
documentation
about
the
extensions.json
format
"recommendations"
:
[
"platformio.platformio-ide"
]
}
\ No newline at end of file
source_code/Teensy35/.vscode/settings.json
View file @
87d93209
{
"terminal.integrated.env.windows"
:
{
"PATH"
:
"C:
\\
Users
\\
M
at
t
\\
.platformio
\\
penv
\\
Scripts;C:
\\
Users
\\
M
at
t
\\
.platformio
\\
penv;C:
\\
Program
Files
\\
Dell
\\
DW WLAN Card
;C:
\\
WINDOWS
\\
system32;C:
\\
WINDOWS;C:
\\
WINDOWS
\\
System32
\\
Wbem;C:
\\
WINDOWS
\\
System32
\\
WindowsPowerShell
\\
v1.0
\\
;
c
:
\\
Program Files
\\
WIDCOMM
\\
Bluetooth Software
\\
;c:
\\
Program Files
\\
WIDCOMM
\\
Bluetooth Software
\\
syswow64
;C:
\\
WINDOWS
\\
s
ystem32
\\
config
\\
systemprofile
\\
.dnx
\\
bin;C:
\\
Program Files
\\
Microsoft DNX
\\
Dnvm
\\
;C:
\\
Program Files (x86)
\\
Windows Kits
\\
8.1
\\
Windows Performance Toolkit
\\
;C:
\\
Program Files
\\
Microsoft SQL Server
\\
130
\\
Tools
\\
Binn
\\
;C:
\\
Program Files
\\
PuTTY
\\
;C:
\\
Program Files (x86)
\\
Xoreax
\\
IncrediBuild;C:
\\
Program Files
\\
MATLAB
\\
R2017b
\\
runtime
\\
win64;C:
\\
Program Files
\\
MATLAB
\\
R2017b
\\
bin;C:
\\
WINDOWS
\\
System32
\\
OpenSSH
\\
;C:
\\
Program Files
\\
Git
\\
cmd;C:
\\
Program Files
\\
Gi
t
\\
m
in
gw64
\\
bin;C:
\\
Program Files
\\
Git
\\
usr
\\
bin;C:
\\
Program Files (x86)
\\
Microsoft VS Code
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
mingw-w64
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
usr
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Scripts;C:
\\
Users
\\
Matt
\\
AppData
\\
Local
\\
Microsoft
\\
WindowsApps;C:
\\
Program Files (x86)
\\
Microsoft VS Code
\\
bin;C:
\\
Users
\\
Matt
\\
AppData
\\
Local
\\
Programs
\\
Microsoft VS Code
\\
bin;C:
\\
Program Fi
le
s
\\
Dell
\\
DW WLAN Card
;C:
\\
WINDOWS
\\
system32;C:
\\
WINDOWS;C:
\\
WINDOWS
\\
System32
\\
Wbem;C:
\\
WINDOWS
\\
System32
\\
WindowsPowerShell
\\
v1.0
\\
;
c:
\\
Program Files
\\
WIDCOMM
\\
Bluetooth Software
\\
;c:
\\
Program Files
\\
WIDCOMM
\\
Bluetooth Software
\\
syswow64;C:
\\
WINDOWS
\\
system32
\\
config
\\
systemprofile
\\
.dnx
\\
bin;C:
\\
Program Files
\\
Microsoft DNX
\\
Dnvm
\\
;C:
\\
Program Files (x86)
\\
W
in
dows Kits
\\
8.1
\\
Windows Performance Toolkit
\\
;C:
\\
Program Files
\\
Microsoft SQL Server
\\
130
\\
Tools
\\
Binn
\\
;C:
\\
Program Files
\\
PuTTY
\\
;C:
\\
Program Files (x86)
\\
Xoreax
\\
IncrediBuild;C:
\\
Program Files
\\
MATLAB
\\
R2017b
\\
runtime
\\
win64;C:
\\
Program Files
\\
MATLAB
\\
R2017b
\\
bin;C:
\\
WINDOWS
\\
System32
\\
OpenSSH
\\
;C:
\\
Program Files
\\
Git
\\
cmd;C:
\\
Program Files
\\
Git
\\
mingw64
\\
bin;C:
\\
Program Files
\\
Git
\\
usr
\\
bin;C:
\\
Program Files (x86)
\\
Microsoft
VS Code
\\
b
in
;C:
\\
Users
\\
Matt
\\
Anaconda3
;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
mingw-w64
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Library
\\
usr
\\
bin;C:
\\
Users
\\
Matt
\\
Anaconda3
\\
Library
\\
bin;C:
\\
Users
\\
M
at
t
\\
Anaconda3
\\
Scripts;C:
\\
Users
\\
Matt
\\
AppData
\\
Local
\\
Microsoft
\\
WindowsApps;C:
\\
Program Files (x86)
\\
Microsoft VS Code
\\
bin;C:
\\
Users
\\
M
at
t
\\
AppData
\\
Local
\\
Programs
\\
Microsoft VS Code
\\
bin"
,
"PATH"
:
"C:
\\
Users
\\
z
at
ar
\\
.platformio
\\
penv
\\
Scripts;C:
\\
Users
\\
z
at
ar
\\
.platformio
\\
penv;C:
\\
Program
Data
\\
Anaconda3;C:
\\
ProgramData
\\
Anaconda3
\\
Library
\\
mingw-w64
\\
bin;C:
\\
ProgramData
\\
Anaconda3
\\
Library
\\
usr
\\
bin;C:
\\
ProgramData
\\
Anaconda3
\\
Library
\\
bin;C:
\\
ProgramData
\\
Anaconda3
\\
Scripts;C:
\\
Program Files (x86)
\\
Common Files
\\
Oracle
\\
Java
\\
javapath
;C:
\\
WINDOWS
\\
system32;C:
\\
WINDOWS;C:
\\
WINDOWS
\\
System32
\\
Wbem;C:
\\
WINDOWS
\\
System32
\\
WindowsPowerShell
\\
v1.0
\\
;
C
:
\\
Program Files
\\
MiKTeX 2.9
\\
miktex
\\
bin
\\
x64
\\
;C:
\\
WINDOWS
\\
S
ystem32
\\
OpenSSH
\\
;C:
\\
Program Files
\\
PuTTY
\\
;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
Microsoft
\\
WindowsApps;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
GitHubDesktop
\\
bin;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
Microsof
t
\\
W
in
dowsApps;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
Programs
\\
Microsoft VS Code
\\
bin;c:
\\
Cygwin64
\\
bin;;C:
\\
ProgramD
at
a
\\
Anaconda3;C:
\\
ProgramD
at
a
\\
Anaconda3
\\
Library
\\
mingw-w64
\\
bin;C:
\\
ProgramD
at
a
\\
Anaconda3
\\
Library
\\
usr
\\
bin;C:
\\
ProgramD
at
a
\\
Anaconda3
\\
Library
\\
bin;C:
\\
ProgramD
at
a
\\
Anaconda3
\\
Scripts;C:
\\
Program Files (x86)
\\
Common Files
\\
Orac
le
\\
Java
\\
javapath
;C:
\\
WINDOWS
\\
system32;C:
\\
WINDOWS;C:
\\
WINDOWS
\\
System32
\\
Wbem;C:
\\
WINDOWS
\\
System32
\\
WindowsPowerShell
\\
v1.0
\\
;
C:
\\
Program Files
\\
MiKTeX 2.9
\\
miktex
\\
b
in
\\
x64
\\
;C:
\\
WINDOWS
\\
System32
\\
OpenSSH
\\
;C:
\\
Program Files
\\
PuTTY
\\
;C:
\\
Users
\\
zatar
\\
AppData
\\
Local
\\
Microsoft
\\
W
in
dowsApps
;C:
\\
Users
\\
z
at
ar
\\
AppD
at
a
\\
Local
\\
GitHubDesktop
\\
bin;C:
\\
Users
\\
z
at
ar
\\
AppData
\\
Local
\\
Microsoft
\\
WindowsApps;C:
\\
Users
\\
z
at
ar
\\
AppData
\\
Local
\\
Programs
\\
Microsoft VS Code
\\
bin
;c:
\\
Cygwin64
\\
bin;
"
,
"PLATFORMIO_CALLER"
:
"vscode"
}
}
\ No newline at end of file
source_code/Teensy35/src/motor_ctrl.cpp
View file @
87d93209
...
...
@@ -7,12 +7,12 @@
#define pi 3.1415926535897932384626433832795
#define H1
23
//greenH
#define H2
6
//yellowH
#define H3 2
1
//blueH
#define L1
22
//GreenL
#define L2
5
//YellowL
#define L3 2
0
//BlueL
#define H1
6
//greenH
#define H2
21
//yellowH
#define H3 2
3
//blueH
#define L1
5
//GreenL
#define L2
20
//YellowL
#define L3 2
2
//BlueL
#define HB1EN 0 //halfbridge 1 enable
#define HB2EN 1 //halfbridge 2 enable
...
...
@@ -98,7 +98,7 @@ int one_to_scaleFactor(int x)
{
if
(
x
==
1
)
{
// NOTE: The scale factor
of
is the max value we want out of
// NOTE: The scale factor is the max value we want out of
// the potentiometer
return
get_pot_0_scaled
(
SCALE_FACTOR
,
PERIOD_OVER_255
);
}
...
...
source_code/Teensy35/src/utils.cpp
View file @
87d93209
...
...
@@ -127,15 +127,15 @@ void debug_low_state_by_state(void)
Serial
.
println
(
"Hit space to call setphase(0,0,0,0,0,0)"
);
block_until_spacebar
();
set_phase
(
0
,
0
,
0
,
0
,
0
,
0
);
Serial
.
println
(
"Hit space to call setphase(0,0,0,
1
,0,
0
)"
);
Serial
.
println
(
"Hit space to call setphase(0,0,0,
0
,0,
1
)"
);
block_until_spacebar
();
set_phase
(
0
,
0
,
0
,
1
,
0
,
0
);
set_phase
(
0
,
0
,
0
,
0
,
0
,
1
);
Serial
.
println
(
"Hit space to call setphase(0,0,0,0,1,0)"
);
block_until_spacebar
();
set_phase
(
0
,
0
,
0
,
0
,
1
,
0
);
Serial
.
println
(
"Hit space to call setphase(0,0,0,0,0
,1
)"
);
Serial
.
println
(
"Hit space to call setphase(0,0,0,
1,
0,0)"
);
block_until_spacebar
();
set_phase
(
0
,
0
,
0
,
0
,
0
,
1
);
set_phase
(
0
,
0
,
0
,
1
,
0
,
0
);
Serial
.
println
(
"Hit space to call setphase(0,0,0,1,1,1)"
);
block_until_spacebar
();
set_phase
(
0
,
0
,
0
,
1
,
1
,
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment