Commit 7b5a5ca3 authored by Christopher Reis's avatar Christopher Reis

Added Frequency attribute and dopplar shift calculation

parent 97a6ef0e
......@@ -13,7 +13,7 @@ public class SatelliteTrack {
private PassPredictor passPredictor;
private SatPassTime satPassTime;
private Boolean isVisibleGUI;
private double freq;
private long freq;
private ArrayList<satPosition> dayOrbit;
private ArrayList<satPosition> singleOrbit;
private ArrayList<satPosition> doubleOrbit;
......@@ -43,6 +43,27 @@ public class SatelliteTrack {
return "TBD";
}
public long getDopplarFrequency(){
try {
return passPredictor.getDownlinkFreq(freq, new Date());
} catch (SatNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return -1;
}
public void setFreq(long freq){
this.freq = freq;
}
public long getFreq(){
return freq;
}
public Boolean isVisibleGUI(){
return isVisibleGUI;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment