Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
Satellite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christopher Reis
Satellite
Commits
70eccf31
Commit
70eccf31
authored
Nov 06, 2015
by
Christopher Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added threading to Tracker Thread
Need to fix issues with GUI Freezing
parent
9423872e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
9 deletions
+12
-9
.gitignore
bin/.gitignore
+1
-1
SatelliteDB.class
bin/satellite/SatelliteDB.class
+0
-0
Application.java
src/GUI/Application.java
+1
-1
satelliteStatus.java
src/GUI/satelliteStatus.java
+6
-6
satelliteTree.java
src/GUI/satelliteTree.java
+1
-1
SatelliteDB.java
src/satellite/SatelliteDB.java
+3
-0
No files found.
bin/.gitignore
View file @
70eccf31
/satellite/
/GUI/
/satellite/
bin/satellite/SatelliteDB.class
View file @
70eccf31
No preview for this file type
src/GUI/Application.java
View file @
70eccf31
...
...
@@ -145,7 +145,7 @@ public class Application {
mntmSelectSatellite
.
addMouseListener
(
new
MouseAdapter
()
{
@Override
public
void
mousePressed
(
MouseEvent
arg0
)
{
(
new
Thread
(
new
trackerThread
())).
start
();
//
(new Thread(new trackerThread())).start();
}
});
mnView
.
add
(
mntmSelectSatellite
);
...
...
src/GUI/satelliteStatus.java
View file @
70eccf31
...
...
@@ -11,9 +11,7 @@ import com.jgoodies.forms.layout.FormLayout;
import
com.jgoodies.forms.layout.ColumnSpec
;
import
com.jgoodies.forms.layout.RowSpec
;
import
satellite.SatelliteDB
;
import
satellite.SatelliteTrack
;
import
satellite.trackerThread
;
import
satellite.*
;
import
com.jgoodies.forms.layout.FormSpecs
;
import
javax.swing.JLabel
;
...
...
@@ -29,6 +27,7 @@ import java.awt.GridLayout;
public
class
satelliteStatus
extends
JInternalFrame
{
TrackerThread
tracker
=
new
TrackerThread
();
SatelliteTrack
curSat
=
null
;
DefaultMutableTreeNode
root
=
new
DefaultMutableTreeNode
(
"Database"
);
JTree
tree
=
new
JTree
(
root
);
...
...
@@ -55,8 +54,9 @@ public class satelliteStatus extends JInternalFrame {
btnStartTracking
.
addMouseListener
(
new
MouseAdapter
()
{
@Override
public
void
mousePressed
(
MouseEvent
arg0
)
{
trackerThread
.
setSatellite
(
curSat
);
(
new
Thread
(
new
trackerThread
())).
start
();
tracker
.
startTrack
(
curSat
.
getTLE
().
getName
(),
"Albuquerque"
);
//thread.setSatellite(curSat);
//(new Thread(new thread())).start();
}
});
panel
.
setLayout
(
null
);
...
...
@@ -108,7 +108,7 @@ public class satelliteStatus extends JInternalFrame {
/* React to the node selection. */
if
(
node
.
isLeaf
())
{
curSat
=
SatelliteDB
.
sat
(
SatelliteDB
.
getSatIndex
((
String
)
nodeInfo
));
trackerThread
.
setSatellite
(
curSat
);
//trackerThread track = new trackerThread
(curSat);
System
.
out
.
println
(
curSat
.
getTLE
().
getName
());
}
else
{
System
.
out
.
println
(
"Not Leaf"
);
...
...
src/GUI/satelliteTree.java
View file @
70eccf31
...
...
@@ -94,7 +94,7 @@ public class satelliteTree extends JInternalFrame {
BufferedImage
img
=
null
;
try
{
img
=
ImageIO
.
read
(
new
File
(
"
C:\\Users\\Christopher\\
Documents\\GitHub\\Satellite\\satellite.png"
));
img
=
ImageIO
.
read
(
new
File
(
"
D:\\My
Documents\\GitHub\\Satellite\\satellite.png"
));
//D:\\MyDocuments\\GitHub\\Satellite\\satellite.png
//C:\\Users\\Christopher\\Documents\\GitHub\\Satellite\\satellite.png
}
catch
(
IOException
e
)
{
...
...
src/satellite/SatelliteDB.java
View file @
70eccf31
...
...
@@ -39,11 +39,14 @@ public class SatelliteDB {
static
boolean
databaseSet
=
false
;
static
String
name
=
"SatelliteDB"
;
static
GroundStationPosition
groundstation
;
static
ArrayList
<
GroundStationPosition
>
GROUNDSTATIONS
=
new
ArrayList
<
GroundStationPosition
>();
final
static
GroundStationPosition
ALBUQUERQUE
=
new
GroundStationPosition
(
35.0873191
,
-
106.6376107
,
5500
,
"Albuquerque"
);
final
static
GroundStationPosition
STORMLAKE
=
new
GroundStationPosition
(
42.6436
,
95.2019
,
1440
,
"Storm Lake"
);
public
SatelliteDB
(
String
name
){
this
.
name
=
name
;
GROUNDSTATIONS
.
add
(
ALBUQUERQUE
);
GROUNDSTATIONS
.
add
(
STORMLAKE
);
}
public
static
boolean
downloadTLE
(
String
in_url
,
String
file
){
...
...
Write
Preview
Markdown
is supported
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