The Development of Control and Scheduling Software for a Small Spacecraft