successful use of burntest

master
Izzy Brand 2018-01-10 10:22:18 -05:00
rodzic caa14fe177
commit 1d2f1862ac
2 zmienionych plików z 4 dodań i 6 usunięć

Wyświetl plik

@ -3,7 +3,6 @@ from pymavlink import mavutil
import time
import numpy as np
from config import *
from helpers import *
#import RPi.GPIO as GPIO
import sys
import argparse
@ -44,10 +43,9 @@ except Exception as e:
print 'Failed to connect to pixhawk. exiting.'
exit(1)
# vehicle.mode = VehicleMode("MANUAL")
vehicle.mode = VehicleMode("STABILIZE")
vehicle.mode = VehicleMode("MANUAL")
while not vehicle.mode.name == "STABILIZE":
while not vehicle.mode.name == "MANUAL":
print 'Waiting for MANUAL mode.'
time.sleep(1)

Wyświetl plik

@ -1,5 +1,5 @@
PORT = '/dev/tty.usbmodem35' # whic port the pixhawk is on
BURN_PIN = 25 # pin with burn relay
PORT = '/dev/tty.usbmodem1' # whic port the pixhawk is on
BURN_PIN = 27 # pin with burn relay
BURN_ALTITUDE = 2 # altitude at which to burn
BURN_TIME_ABOVE = 20 # time above burn alt before ignite
TARGET_LAT = 42.345131 # desired landing latitude