Code entering endless loop


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Blackhawk's Avatar
    Blackhawk Guest


    Did you find this post helpful? Yes | No

    Default

    Clearly you've never seen high power rocketry. For example in the US:

    http://www.aeroconsystems.com/Gene_N...balls2006.html

    Amateur rocket reaches 93000ft and around mach 3.45.

    I live in Australia so we don't have launches with as many people as the US ones, but we still fly some decently high performance rockets. The one I'm building this altimeter for probably won't break the speed of sound and will only reach around 3500-4000ft.

    The next rocket I'm planning however will reach around mach 1.1 and fly to around 5Km altitude (around 16000ft).

  2. #2
    Blackhawk's Avatar
    Blackhawk Guest


    Did you find this post helpful? Yes | No

    Default

    Ok adding pull down resistors and properly poking trisB fixed my problem. New problem is the altimeter is detecting apogee when it is just sitting there immediately after the acceleration arms it. I have coded it such that if the current reading is more than 15 units bigger than the previous reading then it triggers an apogee event. However it is immediately triggering an apogee event, a previous datalogger using the same PIC/ADC and pressure sensor only have +/- unit of 'bit jitter' when stationary, so I can't see how currently two readings at the same pressure would be 15 units different.

    Here is the code in which the new problem is.

    Code:
    launched:   poke ADCON0 , $91
                pause 1
                poke ADCON0 , $95
                pause 5
                peek ADRESH,B6
                Peek ADRESL,B7
                W6 = W6 + 15
                if W3 > W6 then apogee
                W6 = W3
                goto launched
    EDIT: hahahaha oops, look at my code, I was placing the lower half of the 10 bit A/D result at the top of the word and the upper half on the bottom half of the word. As such the +/- 1 unit of bit jitter would have a huge difference. Why do I always only catch these things after posting them.

    EDIT2: Except now the circuit is instantly arming and delaying by a random number before thinking it's at apogee, this is really annoying me.
    Last edited by Blackhawk; - 26th November 2006 at 07:36.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Clearly you are right

    Quote Originally Posted by Blackhawk
    Clearly you've never seen high power rocketry. For example in the US:

    http://www.aeroconsystems.com/Gene_N...balls2006.html

    .
    You are correct, I have never seen amature rockets on such a large scale, in my defense, having worked in a law enforcement environment in post 911 USA, I am sure you can appreciate my concern. Ultimately, what end purpose do these rockets serve, do you and the others plan to make orbital rockets, amature satelite launches, or just sub orbital flights?
    JS

  4. #4
    Blackhawk's Avatar
    Blackhawk Guest


    Did you find this post helpful? Yes | No

    Default

    Ok I finally worked out what was causing my new issues..... I had the compiler set to compile for a 16C711 instead of a 16F88, I don't think I've ever felt like hitting my head against the wall more after I saw that.

    Quote Originally Posted by Joe S.
    You are correct, I have never seen amature rockets on such a large scale, in my defense, having worked in a law enforcement environment in post 911 USA, I am sure you can appreciate my concern. Ultimately, what end purpose do these rockets serve, do you and the others plan to make orbital rockets, amature satelite launches, or just sub orbital flights?
    JS
    For most people it's just fun, a progression to bigger, noisier and cooler rockets from the little ones they started on. For me, my own personal goal is to first develop a suborbital space rocket (I would be the first amateur in Australia to break 100Km altitude) and from there I would like to start an Australian orbital launch company.

    I'm currently 2 years into an aeronautical engineering degree, so I know what I'm doing when it comes to most of this stuff, and nothing trumps practical experience. There is a growing market for satellite delivery, central Australia is almost a perfect location for this sort of thing and there is a huge technology vacuum in the region.

    I know how paranoid people are and it annoys me know end, I've personally been looking into the laws down here before I take a step in any direction. For my next rocket I'm going to have to buy some concentrated hydrogen peroxide (oxidiser for the liquid fuelled motor) and I can already tell it's going to be difficult as a private citizen, even while being perfectly legal.

  5. #5
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    In case something happens and your rockets loses control and goes into space somehow, do not forget to put the WEB link of this forum along side of your rocket in big letters.

    Who knows ?
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. Help with Pic Delay Pulse code please
    By g7jiq in forum mel PIC BASIC Pro
    Replies: 36
    Last Post: - 17th April 2009, 19:19
  2. Help with Pic Delay code mod please
    By g7jiq in forum General
    Replies: 1
    Last Post: - 26th March 2009, 01:06
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  4. Help with LCD commands with button I/P
    By g7jiq in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 9th January 2008, 11:57
  5. help optimising code
    By Darrenmac in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th March 2007, 11:27

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts