• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Stellarium / stellarium / 2700 / 5
11%
master: 11%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2019 09:15AM UTC
Files 614
Run time 47s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Sep 2019 08:59AM UTC coverage: 8.954% (+0.002%) from 8.952%
MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" TRANSLATE=false COVERAGE=true

push

travis-ci

web-flow
Fix planets orbits (#773)

* Planets: add some position getters methods

That takes a date as argument, so that we can compute the position of
a planet at any time without having to change the lastJDE.

* Simplify orbit computation code

- Remove all optimizations for the moment (makes the code very slow).
- Explicitly set the time in the positions function.
- Adjust the orbit position to suppress the parent body movement.  We do
  it manually here by subtracting the parent position shift.

* Use cache for planet positions

This replaces the old way of using tricks to avoid recomputing the
orbit.  We now use a cache so that recomputing several times the same
position should be fast enough.

Probably need to test it a bit to make sure it really works.  Also the
current cache implementation could be improved.

* Remove unused code

* Use a larger cache for planet position

At least larger that the orbit segments.  Here I use a safe factor of
two, that might be a bit too much.

* Only compute orbit when they are rendered

So that we don't spend time computing orbits of non visible planets.

* Remove Planet::computePositionWithoutOrbit

Since we compute the orbit only when needed now.

* Optimize orbit computation

I think there should be no need to use the heliocentric position.  This
is much faster like that because we don't make the parent planet
position cache dirty.

* Orbit: fix crash with Sun orbit rendering

9264 of 103457 relevant lines covered (8.95%)

16596.25 hits per line

Source Files on job 2700.5 (MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" TRANSLATE=false COVERAGE=true)
  • Tree
  • List 0
  • Changed 10
  • Source Changed 3
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 682
  • Travis Job 2700.5
  • 53d3baac on github
  • Prev Job for MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" TRANSLATE=false COVERAGE=true on master (#2699.5)
  • Next Job for MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" TRANSLATE=false COVERAGE=true on master (#2701.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc