Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
int main()
{
}
[21:43] <eroomde_> ibanezmatt13: have you used excel before?
[21:43] <ibanezmatt13> yea
[21:44] <adamgreig> I feel like a superb analogy is about to come up
[21:44] <ibanezmatt13> :)
[21:44] <eroomde_> so you know when you do equations, you might need to reference the contents of another cell
[21:44] <eroomde_> B4 or whatever
[21:44] <mfa298> adamgreig: I have the same issues at times (mostly for the same reason of not doing it enough)
[21:44] <ibanezmatt13> yes
[21:45] <eroomde_> so you would say '= B4 + 2'
[21:45] <eroomde_> say
1. Line 21 in trigger.py - Change trigger altitude to 29500
2. Line 5 in trigger.py - Change bet_url from google to the actual URL
3. Ensure everything is running PERFECTLY from boot(LEDs, Motor)
4. Line 137 in flightcode.py - Change trigger altitude to 29500
5. Check LEDs and motor code are NOT triggering
#!/bin/bash
while [ 1 ]; do # do forever
{
raspistill -o images/image/`date +%H%M%S`+'.jpg'
sleep 30 # delay for one second
}
done
#!/usr/bin/python
import os
import serial
import crcmod
import time
import time as time_
trigger = False
setNav = bytearray.fromhex("B5 62 06 24 24 00 FF FF 06 03 00 00 00 00 10 27 00 00 05 00 FA 00 FA 00 64 00 2C 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 DC")
#!/usr/bin/python
import os
import serial
import crcmod
import time
import time as time_
gps_set_success = False # boolean for the status of flightmode
time_set = False # boolean for status of the OS time being set
import time
import requests
text_file_path = "C:/Users/Adrian/dl-fldigi.files/talk/textout.txt"
initialised = False
the_trigger = "altitude 30000m reached! I'm in space!"
trigger_word_1 = "altitude"
trigger_word_2 = "space"
trigger_word_3 = "reached"
altitude_reached = False
€þÿ$$NORB_Test,19:02:43,2,53.532823,-2.705095,True,5,130*DCA9
þ€ý$$NORB_Test,19:02:47,3,53.53282,-2.705085,True,5,129*574D
üþ$$NORB_Test,19:02:51,4,53.532821,-2.70509,True,5,131*1F88
þ€üÿ$$NORB_Test,19:02:55,5,53.532818,-2.705105,True,5,131*3F7D
þ€ÿÿ$$NORB_Test,19:02:59,6,53.532821,-2.705098,True,5,131*99FA
ü€ÿþ$$NORB_Test,19:03:03,7,53.532825,-2.705083,True,5,130*BAC4
ø€ýþ$$NORB_Test,19:03:07,8,53.532821,-2.705086,True,5,130*3773
ü€ÿÿ$$NORB_Test,19:03:11,9,53.53282,-2.7051,True,5,130*FBF5
ü€ÿü$$NORB_Test,19:03:15,10,53.53282,-2.70511,True,5,130*E9DF
ü€ÿÿ$$NORB_Test,19:03:19,11,53.532818,-2.705123,True,5,130*1859
import requests
import json
triggered = False
altitude_json_link = "http://habitat.habhub.org/habitat/_design/ept/_list/json/payload_telemetry/payload_time?include_docs=true&startkey=[%22ba0e1230c8dbab3d32b4735aa581b873%22]&endkey=[%22ba0e1230c8dbab3d32b4735aa581b873%22,[]]&fields=altitude" # altitude link from Habitat
trigger_json_link = "http://habitat.habhub.org/habitat/_design/ept/_list/json/payload_telemetry/payload_time?include_docs=true&startkey=[%22ba0e1230c8dbab3d32b4735aa581b873%22]&endkey=[%22ba0e1230c8dbab3d32b4735aa581b873%22,[]]&fields=trigger" # trigger link from Habitat
while True: # forever
r = requests.get(altitude_json_link) # get the JSON information
import requests
import json
from twython import Twython
altitude_reached = False
APP_KEY = 'Atdroh949549595959595959595OudNPFZ7ThCegNA'
APP_SECRET = '9rr9WugisXQL8cK4bViuf8gRffsffffff9roYVvIUYt5l4GaEHg'
OAUTH_KEY = '1581565303-3t0YcrYqLe8dffaUIwWbyAxb2KmGdsIH8u2NOdk7W3'