matejpoliacek / Callisto

Navigation-based game for Android, using Europe's global navigation satellite system Galileo (ESA)
https://play.google.com/store/apps/details?id=com.chocolateam.galileogame&hl=en
1 stars 1 forks source link

Finish integrating the "Satellites" section #5

Open matejpoliacek opened 6 years ago

matejpoliacek commented 6 years ago

The entirety of "Satellites" section uses dummy data as before. It should be linked with the PVT to get actual satellite information,

lgrcia commented 6 years ago

In the SpaceshipViewActivity, all UI fragments are updated correctly with GNSSCompare data. One thing that is not working is the retrieving of Satellites Positions to update the RadarView.

on SpaceshipViewActivity, the following observer:

public Observer shipUpdater = new Observer() {
        @Override
        public void update(final Observable o, Object arg) {
                List<SatelliteParameters> satellites = ((CalculationModule.CalculationModuleObservable) o).getParentReference().getConstellation().getSatellites();
                if (satellites.size() > 1){
                     System.out.println(satellites.get(1).getSatellitePosition();
                }
}

returns the log

updateSatellites:null

See following commit for more details (mentionning issue #5) [test log done in RadarView under tag SAT_POSITION_CHECK]