kopia lustrzana https://github.com/IzzyBrand/spaceplane
successful use of burntest
rodzic
caa14fe177
commit
1d2f1862ac
|
@ -3,7 +3,6 @@ from pymavlink import mavutil
|
||||||
import time
|
import time
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from config import *
|
from config import *
|
||||||
from helpers import *
|
|
||||||
#import RPi.GPIO as GPIO
|
#import RPi.GPIO as GPIO
|
||||||
import sys
|
import sys
|
||||||
import argparse
|
import argparse
|
||||||
|
@ -44,10 +43,9 @@ except Exception as e:
|
||||||
print 'Failed to connect to pixhawk. exiting.'
|
print 'Failed to connect to pixhawk. exiting.'
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
# vehicle.mode = VehicleMode("MANUAL")
|
vehicle.mode = VehicleMode("MANUAL")
|
||||||
vehicle.mode = VehicleMode("STABILIZE")
|
|
||||||
|
|
||||||
while not vehicle.mode.name == "STABILIZE":
|
while not vehicle.mode.name == "MANUAL":
|
||||||
print 'Waiting for MANUAL mode.'
|
print 'Waiting for MANUAL mode.'
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
PORT = '/dev/tty.usbmodem35' # whic port the pixhawk is on
|
PORT = '/dev/tty.usbmodem1' # whic port the pixhawk is on
|
||||||
BURN_PIN = 25 # pin with burn relay
|
BURN_PIN = 27 # pin with burn relay
|
||||||
BURN_ALTITUDE = 2 # altitude at which to burn
|
BURN_ALTITUDE = 2 # altitude at which to burn
|
||||||
BURN_TIME_ABOVE = 20 # time above burn alt before ignite
|
BURN_TIME_ABOVE = 20 # time above burn alt before ignite
|
||||||
TARGET_LAT = 42.345131 # desired landing latitude
|
TARGET_LAT = 42.345131 # desired landing latitude
|
||||||
|
|
Ładowanie…
Reference in New Issue