|
|
|
@ -1,8 +1,6 @@
@@ -1,8 +1,6 @@
|
|
|
|
|
/****************************************************************************
|
|
|
|
|
* |
|
|
|
|
* Copyright (C) 2013 PX4 Development Team. All rights reserved. |
|
|
|
|
* Author: Thomas Gubler <thomasgubler@student.ethz.ch> |
|
|
|
|
* Julian Oes <joes@student.ethz.ch> |
|
|
|
|
* Copyright (c) 2013, 2014 PX4 Development Team. All rights reserved. |
|
|
|
|
* |
|
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
|
|
* modification, are permitted provided that the following conditions |
|
|
|
@ -36,14 +34,14 @@
@@ -36,14 +34,14 @@
|
|
|
|
|
/**
|
|
|
|
|
* @file state_machine_helper.h |
|
|
|
|
* State machine helper functions definitions |
|
|
|
|
* |
|
|
|
|
* @author Thomas Gubler <thomasgubler@student.ethz.ch> |
|
|
|
|
* @author Julian Oes <julian@oes.ch> |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#ifndef STATE_MACHINE_HELPER_H_ |
|
|
|
|
#define STATE_MACHINE_HELPER_H_ |
|
|
|
|
|
|
|
|
|
#define GPS_NOFIX_COUNTER_LIMIT 4 //need GPS_NOFIX_COUNTER_LIMIT gps packets with a bad fix to call an error (if outdoor)
|
|
|
|
|
#define GPS_GOTFIX_COUNTER_REQUIRED 4 //need GPS_GOTFIX_COUNTER_REQUIRED gps packets with a good fix to obtain position lock
|
|
|
|
|
|
|
|
|
|
#include <uORB/uORB.h> |
|
|
|
|
#include <uORB/topics/vehicle_status.h> |
|
|
|
|
#include <uORB/topics/actuator_armed.h> |
|
|
|
|