Orbiter-Forum  

Go Back   Orbiter-Forum > Blogs
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

  1. Old Comment
    george7378's Avatar

    A bit of an exercise of my imagination

    Hi, you're a great writer Awesome! You should do more random stuff like this - I'm too lazy to commit to a series like Threading the Needle xD
    Posted 03-03-2012 at 11:10 PM by george7378 george7378 is offline
  2. Old Comment
    mojoey's Avatar

    A bit of an exercise of my imagination

    Oh...well...you know...don't get the BBC in the U.S., except for some all news 24/7 loop channel...even that has commercials...
    Posted 03-03-2012 at 11:04 PM by mojoey mojoey is offline
  3. Old Comment

    A bit of an exercise of my imagination

    The BBC Does not have and will never have commercial breaks.

    Other than that I like it.
    Keep up the good work.
    Posted 03-03-2012 at 11:02 PM by APDAF APDAF is offline
  4. Old Comment
    Samuel Edwards's Avatar

    C++ typing animation

    I love that song!
    Posted 03-03-2012 at 10:09 PM by Samuel Edwards Samuel Edwards is offline
  5. Old Comment
    orb's Avatar

    C++ typing animation

    You can add some randomness to it, so it isn't always 80 milliseconds delay, but for example in range of 60-150 milliseconds.
    Posted 03-03-2012 at 07:34 PM by orb orb is offline
  6. Old Comment
    Scav's Avatar

    SEP-008, Chapter 5

    You guys put a huge smile on my face. Thanks!
    Posted 02-27-2012 at 06:07 PM by Scav Scav is offline
  7. Old Comment
    Aeadar's Avatar

    SEP-008, Chapter 5

    Really good story going there! Can't wait for more.
    Posted 02-27-2012 at 03:24 PM by Aeadar Aeadar is offline
  8. Old Comment
    PhantomCruiser's Avatar

    SEP-008, Chapter 5

    Very nice!
    Posted 02-27-2012 at 08:06 AM by PhantomCruiser PhantomCruiser is offline
  9. Old Comment
    Eli13's Avatar

    SEP-008, Chapter 5

    Awesome job as always, Scav.
    Posted 02-27-2012 at 03:52 AM by Eli13 Eli13 is offline
  10. Old Comment
    mojoey's Avatar

    SEP-008, Chapter 5

    Muahahahaha...I have them addicted to me!!!! JK, I think you truly do an excellent job of writing these
    Posted 02-27-2012 at 02:59 AM by mojoey mojoey is offline
  11. Old Comment
    MaverickSawyer's Avatar

    On C++ coding.

    Thanks for the tips, guys. I wasn't planning on incorporating units into the equation, since that's beyond my understanding of C++ at this time. this is just the start of the project, and I haven't had time to convert the entire TI program to something that C++ can read. I still am trying to make heads or tails of the header files, but considering I was half asleep when I looked at that section last, that's hardly suprising. I'll take the tips and incorporate them into the project.
    Posted 02-25-2012 at 11:27 PM by MaverickSawyer MaverickSawyer is offline
  12. Old Comment
    Urwumpe's Avatar

    On C++ coding.

    You could also just enter values (variable = value unit)and then start to calculate when enough data is given to calculate one other quantity.

    Also as tiny help for describing units in a simple way: OpenFOAM for example uses a vector of seven integer values to describe the units. Each component of the vector is one basic unit (eg, kg, m, s) and the number gives the exponent of it... for example you could use (kg m s) as units and then describe internally meters per second squared as (0 1 -2) or Newtons as (1 1 -2)
    Posted 02-25-2012 at 10:10 PM by Urwumpe Urwumpe is offline
  13. Old Comment
    RisingFury's Avatar

    On C++ coding.

    I'm not gonna offer any technical advice, but I do have a suggestion for upgrading this - and giving you a new C++ task.

    You have an if statement with 1, 2 and 3 for which value to pick, but if you remember, pretty much every quantity has a unit. For time it's seconds (s), for altitude it's meters (m) and for velocity it's meters per second (m/s). You could have the data entry done in a way that you just enter a number with the unit, example:
    6000 s

    The program would look for the unit. If it finds the unit s, it would work on the formula for time.
    Posted 02-25-2012 at 09:58 PM by RisingFury RisingFury is online now
  14. Old Comment

    On C++ coding.

    Code:
    int refob;
    int vel;
    int orad;
    int rad;
    int alt;
    int time;
    I think (and that's just ME, I'm also a beginner) you could put all those into a forward declaration, and get rid of repeating them every time.
    Again, I'm only a beginner, so I'm not sure about it.
    Posted 02-25-2012 at 08:35 PM by Hurricane Hurricane is offline
  15. Old Comment

    On C++ coding.

    Presumably you are assigning values to refob, alt, rad, etc that will be used later. Those variables should be moved to the top of the method. They will fall out of scope when the if{} block is exited and not be available.

    Replace the else if construct with a switch (as has been said).

    Code:
    switch (type)
    {
       case 1:
       ... do stuff
       break;
    ...
    Better yet, use consts so your code reads like this:

    Code:
    const int ALTITUDE = 1;
    ...
    switch (type)
    {
       case ALTITUDE:
       ... enter altitude etc.
       break;
    ...
    I would also move the data entry to another method that is called from main so that the intent of your 'main' method is easier to read. That is a judgement call and depends on what else 'main' is going to do of course.
    Posted 02-25-2012 at 08:31 PM by Blake Blake is offline
  16. Old Comment
    Urwumpe's Avatar

    On C++ coding.

    REMOVE THE SEMICOLON AFTER THE "if (...)".

    your code won't compile like that, it will fail because the else hangs in the empty air.

    Code:
    if (x) ;
    is the same as if you write

    Code:
    if(x) {}
    The statements that should be executed if x is true is empty.
    Try it with a switch...case:...default: statement. This makes the if...else if...else stuff much better to read and will tell the compiler to make more effective code.
    Posted 02-25-2012 at 08:04 PM by Urwumpe Urwumpe is offline
  17. Old Comment
    Napalm42's Avatar

    HASSESA update

    Good luck friend!

    Breto Aerospace will be around if you need another flight capable service for your spatial needs.
    Posted 02-24-2012 at 02:12 AM by Napalm42 Napalm42 is offline
  18. Old Comment
    Nazban's Avatar

    HASSESA update

    Good luck, take care, and i'm also looking forward to HASSESA when it resumes flights!!
    Posted 02-23-2012 at 02:51 PM by Nazban Nazban is offline
  19. Old Comment
    IronRain's Avatar

    HASSESA update

    Good luck and I'm looking forward to when HASSESA will resume operations!

    Posted 02-23-2012 at 02:49 PM by IronRain IronRain is online now
  20. Old Comment
    Nazban's Avatar

    DIASA Session #1-Spaceflight

    That is a good idea, but I'm not that familiar with OMP. Thats a good idea though, ill look into it if its possible.
    Posted 02-21-2012 at 05:53 AM by Nazban Nazban is offline

All times are GMT. The time now is 12:51 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2007 - 2012, Orbiter-Forum.com. All rights reserved.