2016-02-17 21:25:29 -04:00
|
|
|
#pragma once
|
2014-03-31 14:29:33 -03:00
|
|
|
|
2015-08-11 03:28:43 -03:00
|
|
|
#include <AP_HAL/AP_HAL.h>
|
2014-03-31 14:29:33 -03:00
|
|
|
#include "AP_HAL_VRBRAIN_Namespace.h"
|
|
|
|
|
|
|
|
class VRBRAIN::VRBRAINUtil : public AP_HAL::Util {
|
|
|
|
public:
|
|
|
|
VRBRAINUtil(void);
|
|
|
|
bool run_debug_shell(AP_HAL::BetterStream *stream);
|
|
|
|
|
|
|
|
enum safety_state safety_switch_state(void);
|
|
|
|
|
|
|
|
/*
|
|
|
|
set system clock in UTC microseconds
|
|
|
|
*/
|
|
|
|
void set_system_clock(uint64_t time_utc_usec);
|
|
|
|
|
|
|
|
/*
|
|
|
|
get system identifier (STM32 serial number)
|
|
|
|
*/
|
|
|
|
bool get_system_id(char buf[40]);
|
|
|
|
|
2015-11-05 00:41:54 -04:00
|
|
|
uint32_t available_memory(void) override;
|
2014-03-31 14:29:33 -03:00
|
|
|
|
|
|
|
private:
|
|
|
|
int _safety_handle;
|
|
|
|
};
|