Based on the original Rocket Workbench on SourceForge in CVS at: https://sourceforge.net/projects/rocketworkbench
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.5 KiB

  1. /* c++rocket.h - Simulation of rocket flight */
  2. /* Copyright (C) 2000 */
  3. /* Antoine Lefebvre <antoine.lefebvre@polymtl.ca> */
  4. /* This program is free software; you can redistribute it and/or modify*/
  5. /* it under the terms of the GNU General Public License as published by*/
  6. /* the Free Software Foundation; either version 2 of the License, or */
  7. /* (at your option) any later version. */
  8. /* This program is distributed in the hope that it will be useful, */
  9. /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  10. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  11. /* GNU General Public License for more details. */
  12. /* You should have received a copy of the GNU General Public License */
  13. /* along with this program; if not, write to the Free Software */
  14. /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. #if !defined (cxx_rocket_h)
  16. #define cxx_rocket_h 1
  17. class simulation;
  18. #ifndef PI
  19. #define PI 3.14159265358979323846
  20. #endif
  21. #define MAXPROP 3 // Maximum number of stage on the rocket
  22. // pointer to the actual simulation
  23. extern simulation *simptr;
  24. extern const double R; // Perfect gaz constant
  25. extern const double g; // Earth gravitational acc�l�ration
  26. extern const double G; // universal gravitational constant
  27. typedef enum
  28. {
  29. AERO_MODEL,
  30. SIMPLE_MODEL,
  31. MODEL_LAST
  32. } Model_t;
  33. #endif