what really excited ryan was that the ion-thruster motor was electrically based and the power supply was pretty simple ; it was derived from an array of solar panels if the spacecraft flew within sight of the sun , or from a small nuclear reactor which could be built aboard the craft , and would have no limit to giving out energy as long as there was enough xenon gas in the tanks .