• Rss feeds articles
High Altitude Balloon ► Categories ► HAB

Prediction and flight data

22 04 2014   //   Written by Yannick   //   Classified in : HAB  //  Tags : prediction

Prediction

The HabHub Predictor website can be used to predict where the balloon is possibly going to land.

You need to enter the folowing informations to compute the prediction:

  • Latitude
  • Longitude
  • Time
  • Ascent rate
  • Burst altitude
  • Descent rate

The prediction is displayed on the map, then it’s possible to download the prediction as multiple formats including KML at the top right corner.

KML files can be used with Google Earth which is not Open Source but is running fine on Gnu/Linux.

There is also another tool from the Cambridge University Space Flight which is called the Hourly Predictor.

Code source of these tools is available and I installed the hourly predictor on my Raspberry Pi server, but this will be the topic of a separate post.

The prediction tool use wind data from NOAA / National and Oceanic Athomospheric Administration

Screenshots of the prediction, 1 hour before the flight:




Flight data

All flight data has been recorded by the Raspberry Pi inside the payload in NMEA.
To use it in Google Earth, we can convert it to KML to keep the ability to view altitude information and see lines from the ground, using open source gpsbabel tool.

gpsbabel -i nmea -f gps_data.nmea -o kml,floating=1,extrude=1 -F out.kml


Tip: you can get the KML of a flight from Habitat server here
Then you can directly paste the resulting URL of the KML, into the “Search” form.. the flight track will be automatically loaded on the map.
It currenlty works for KML files under 10MB. My Flight data from the payload is bigger so I used here the .kml of the flight data that has been uploaded to Habitat server.



Prediction accuracy

I took a screenshot of the flight prediction several days before the flight.
Here is the result:



For the prediction to be the most accurate, it is necessarry to carefully measure all weights, helium quantity etc…

The prediction in yellow and the flight in blue:





Comparing the prediction (even few days before) and the real flight, we can conclude that the prediction tool and NOAA data are very accurate.
According to other UKHAS members, this is quite common to have this kind of accuracy.

The “shape” of the fight is very similar and the landing point was only 6 Km from the prediction… Impressive :)



As we know the prediction is usualy accurate, this give us the opportunity to postpone a launch that would have been landed too far, too close from a city, highway, water etc..

I need to investigate more on OpenStreetMap capabilities to deal with KML et see if it can be used instead of GoogleMaps.

Great job done by UKHAS people managing HABHub and those from Cambridge University Space Flight who created the software who is able of such accurate predictions.


Raspberry Pi Camera

17 04 2014   //   Written by Yannick   //   Classified in : HAB  //  Tags : camera, photos

One of the cameras used is the "official" Raspberry Pi camera

Informations

  • Price: 24€
  • Very light (3g)
  • 25mm x 20mm x 9mm
  • 5 MegaPixels / 2592x1944
  • Also supports 1080p30
  • Powered by the RaspberryPi.

Script informations

  • To prevent filling all the SD card, I created a container of a defined file size and mounted it with mount -o loop and ask the script to store pictures into that specific folder. This way the photos can't fill all the system partition.
  • Script has been configured to take more photos at high altitude, and less photos at low altitude.
  • Script add in the filename, time (seconds from 1970) and the altitude.
    This give us an incremental viewing and let us know easily the altitude of each picture without having to read Exif metadata.

Canon CHDK and intervalometer script

15 04 2014   //   Written by Yannick   //   Classified in : HAB  //  Tags : photos, chdk, intervalometer, canon, camera

One of the cameras used is a Canon A590IS

  • 15€ (second hand)
  • 8 MegaPixels / 3264x2448
  • Not very light
  • Used with 2 Ultimate Lithium Energizer
  • Loaded with CHDK firmware

CHDK installation

CHDK for Canon Hack Development Kit.
This is an open source alternative firmware installed on the SD card that let the user load custom scripts.
In our case we want an intervalometer script.

Check instructions for your own camera.

What I did:

  • Use gparted or similar to create a 16 MB partition
  • Use gparted or similar to create another FAT32 partition
  • echo -n BOOTDISK | sudo dd bs=1 count=8 seek=64 of=/dev/mmcblk0p1
  • unzip a590-101b-1.2.0-3347-full.zip
  • For dual partition cards, all the files and folders from the CHDK distribution file belong on the large second partition except for the files DISKBOOT.BIN and either PS.FIR or PS.FI2, which belong on the smaller FAT16 bootable partition.
  • Enable the "lock" switch of the SD card

Other ramdom useful informations

  • Disable RAW
  • Disable Flash
  • Disable Automatic shutdown
  • Change numerotation order
  • Set date/time
  • Test it in freezer
  • Was able to take ~ 1500 pictures with the battery (low temperature)
  • Set the script to take a picture every 7 seconds (~ 3 hours)

Script

I reviewed several scripts available on Internet and found the one from Stratodean the easier to understand.

The original Stratodean script is available here.

I modified it a bit with set_lcd_display parameter

My script version:

-- Uggy Camera Control for CHDK written in Lua
--
--
--Author: Mark Ireland
--Modified: Uggy 

--[[
@title Uggy Camera Control
@param s Interval (seconds)
@default s 10
@param d Initial Delay (seconds)
@default d 10
@param c LCDdisplay (0 se coupera)
@default c 0
]]
--Functions
--Get the date and time
function timeStamp()
    return string.format("%02d/%02d/%4d,%02d:%02d:%02d",
    get_time("D"),
    get_time("M"),
    get_time("Y"),
    get_time("h"),
    get_time("m"),
    get_time("s"))
end

--Get the time, iteration, temperatures and voltage and print it in a nice string
function logData(o)
    return string.format("%s,%i,%i,%i,%i",
    timeStamp(),
    o,
    get_temperature(0),
    get_temperature(1),
    get_vbatt())
end

--Setup

print_screen(1)
print("Uggy Camera Control")
print(timeStamp())
print("Interval: ",s)
print("Initial Delay:",d)

sleep(5000)

set_lcd_display(c)


--Convert seconds into milliseconds and ensure that params are sensible
if s<1 then s=1 end
if d<1 then d=1 end
if c<0 then c=0 end
if c>1 then c=1 end
s = s*1000
d = d*1000


--Initial delay
sleep(d)

print("Starting picture capture")
print("Date,Time,Iteration,LensTemperature,CCDTemperature,BatteryVoltage")
i = 0

--endless loop for picture capture - will run until space full or battery empty
while(1) do
    set_lcd_display(c) 
    --Take the picture
    shoot()
    --Log the info to the file
    print(logData(i))
    --Add 1 to iteration
    i = i + 1
    --Sleep iteration delay
    sleep(s)

end

Photos

13 04 2014   //   Written by Yannick   //   Classified in : HAB  //  Tags : photos

The UGGY payload was containing 2 cameras:

  • RaspberryPi "official" camera
  • Canon A590IS with CHDK

Best photos are available on http://picts.hab.uggy.org

First HAB launch - Success

13 04 2014   //   Written by Yannick   //   Classified in : HAB  //  Tags : none

Hi,

I successfully launched (and retrieved) UGGY payload on 5 April 2014 in France.
I will try to publish on this web site http://hab.uggy.org some informations about this and HAB stuff.

« previous page 3 of 3