Skip to content
C
1.1 KB
Raw Blame
/**
 *
 * ESP-Drone Firmware
 * 
 * Copyright 2019-2020  Espressif Systems (Shanghai) 
 * Copyright (C) 2012 BitCraze AB
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, in version 3.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * zranger.h: Z-Ranger deck driver
 */

#ifndef _ZRANGER_H_
#define _ZRANGER_H_

#include "stabilizer_types.h"
//#include "deck_core.h"

void zRangerInit(void);//DeckInfo* info);

bool zRangerTest(void);
void zRangerTask(void* arg);

bool zRangerReadRange(zDistance_t* zrange, const uint32_t tick);

int16_t zRangerMeasurementAndRestart();

#endif /* _ZRANGER_H_ */