forked from jeyoder/StuffInSpace
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
64 additions
and
28 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,10 @@ | |
<img class="dot" src="images/dot-grey.png"></img> | ||
Debris | ||
</li> | ||
<li class="clickable unassigned"> | ||
<img class="dot" src="images/dot-yellow.png"></img> | ||
Unassigned | ||
</li> | ||
</ul> | ||
<ul id="controls-info"> | ||
<li> | ||
|
@@ -80,11 +84,14 @@ | |
to calculate satellite positions.</p> | ||
|
||
<span class="box-header">About the author</span> | ||
<p>My name is James Yoder; I'm an alumnus of <a href="http://www.usfirst.org/roboticsprograms/frc"><i>FIRST</i> Robotics | ||
Competition </a> (FRC) <a href="http://team624.org">Team 624</a> and an incoming Electrical and Computer Engineering freshman at the | ||
University of Texas at Austin. </p> | ||
<p>Contact: <a href="mailto:[email protected]">[email protected]</a></p> | ||
<p>See Stuff in Space on <a href="https://github.com/jeyoder/ThingsInSpace"> GitHub </a></p> | ||
<p>This is was originally developped, in 2015, by James Yoder, an alumnus of <a href="http://www.usfirst.org/roboticsprograms/frc"><i>FIRST</i> Robotics | ||
Competition </a> (FRC) <a href="http://team624.org">Team 624</a> and a graduate of the University of Texas at Austin.</p> | ||
<p>The project has since been taken up by the community to further its development and keep it relevant.</p> | ||
<span class="box-header">Source Code and Issue Reporting</span> | ||
<p>This current fork is available on <a href="https://github.com/ajmas/StuffInSpace">GitHub</a>, | ||
with James Yoder's upstream repository also being available on | ||
<a href="https://github.com/jeyoder/StuffInSpace">GitHub</a>. | ||
</p> | ||
|
||
|
||
</div> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
const baseUrl = import.meta.env.BASE_URL; | ||
const constants = { | ||
baseUrl | ||
baseUrl, | ||
propergateInterval: 500 // milliseconds | ||
}; | ||
|
||
export default constants; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,43 @@ | ||
/* eslint-disable no-console */ | ||
function log (level, output, ...args) { | ||
output(level, ...args); | ||
|
||
const logLevels = ['error', 'warn', 'info', 'debug']; | ||
const enabledOutputs = {}; | ||
let allOutputs = {}; | ||
|
||
function log (scope, level, output, ...args) { | ||
if (scope.enabledOutputs[level]) { | ||
output(level.toUpperCase(), ...args); | ||
} | ||
} | ||
|
||
function setLogLevel (level) { | ||
const levelIdx = logLevels.indexOf(level.toLowerCase()); | ||
for (let i = 0; i < logLevels.length; i++) { | ||
enabledOutputs[logLevels[i]] = i <= levelIdx; | ||
} | ||
} | ||
|
||
function getLogger () { | ||
return { | ||
error: log.bind(this, 'ERROR', console.error), | ||
warn: log.bind(this, 'WARN', console.warn), | ||
info: log.bind(this, 'INFO', console.info), | ||
debug: log.bind(this, 'DEBUG', console.debug) | ||
...allOutputs, | ||
setLogLevel | ||
}; | ||
} | ||
|
||
function init () { | ||
allOutputs = { | ||
error: log.bind(this, { enabledOutputs }, 'error', console.error), | ||
warn: log.bind(this, { enabledOutputs }, 'warn', console.warn), | ||
info: log.bind(this, { enabledOutputs }, 'info', console.info), | ||
debug: log.bind(this, { enabledOutputs }, 'debug', console.debug) | ||
}; | ||
|
||
for (let i = 0; i < logLevels.length; i++) { | ||
enabledOutputs[logLevels[i]] = true; | ||
} | ||
} | ||
|
||
init(); | ||
setLogLevel('debug'); | ||
|
||
export default getLogger(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters