APM:Libraries
|
#include <Util.h>
Public Member Functions | |
VRBRAINUtil (void) | |
bool | run_debug_shell (AP_HAL::BetterStream *stream) |
enum safety_state | safety_switch_state (void) |
void | set_system_clock (uint64_t time_utc_usec) |
bool | get_system_id (char buf[40]) |
uint32_t | available_memory (void) override |
AP_HAL::BetterStream * | get_shell_stream () |
perf_counter_t | perf_alloc (perf_counter_type t, const char *name) override |
void | perf_begin (perf_counter_t) override |
void | perf_end (perf_counter_t) override |
void | perf_count (perf_counter_t) override |
AP_HAL::Semaphore * | new_semaphore (void) override |
void | set_imu_temp (float current) override |
void | set_imu_target_temp (int8_t *target) override |
void * | malloc_type (size_t size, AP_HAL::Util::Memory_Type mem_type) override |
void | free_type (void *ptr, size_t size, AP_HAL::Util::Memory_Type mem_type) override |
![]() | |
int | snprintf (char *str, size_t size, const char *format,...) |
int | vsnprintf (char *str, size_t size, const char *format, va_list ap) |
void | set_soft_armed (const bool b) |
bool | get_soft_armed () const |
void | set_capabilities (uint64_t cap) |
void | clear_capabilities (uint64_t cap) |
uint64_t | get_capabilities () const |
virtual const char * | get_custom_log_directory () const |
virtual const char * | get_custom_terrain_directory () const |
virtual const char * | get_custom_storage_directory () const |
virtual const char * | get_custom_defaults_file () const |
uint64_t | get_system_clock_ms () const |
void | get_system_clock_utc (int32_t &hour, int32_t &min, int32_t &sec, int32_t &ms) const |
uint32_t | get_time_utc (int32_t hour, int32_t min, int32_t sec, int32_t ms) const |
virtual void | commandline_arguments (uint8_t &argc, char *const *&argv) |
virtual bool | toneAlarm_init () |
virtual void | toneAlarm_set_tune (uint8_t tune) |
virtual void | _toneAlarm_timer_tick () |
Private Attributes | |
int | _safety_handle |
VRBRAIN::NSHShellStream | _shell_stream |
struct { | |
int8_t * target | |
float integrator | |
uint16_t count | |
float sum | |
uint32_t last_update_ms | |
int fd = -1 | |
} | _heater |
Additional Inherited Members | |
![]() | |
enum | safety_state { SAFETY_NONE, SAFETY_DISARMED, SAFETY_ARMED } |
enum | perf_counter_type { PC_COUNT, PC_ELAPSED, PC_INTERVAL } |
enum | Memory_Type { MEM_DMA_SAFE, MEM_FAST } |
typedef void * | perf_counter_t |
![]() | |
bool | soft_armed = false |
uint64_t | capabilities = 0 |
|
overridevirtual |
how much free memory do we have in bytes.
Reimplemented from AP_HAL::Util.
|
overridevirtual |
Reimplemented from AP_HAL::Util.
Definition at line 261 of file Util.cpp.
|
inlinevirtual |
Reimplemented from AP_HAL::Util.
|
virtual |
Reimplemented from AP_HAL::Util.
Definition at line 110 of file Util.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::Util.
Definition at line 249 of file Util.cpp.
|
inlineoverridevirtual |
Reimplemented from AP_HAL::Util.
|
overridevirtual |
Reimplemented from AP_HAL::Util.
|
overridevirtual |
Reimplemented from AP_HAL::Util.
|
overridevirtual |
Reimplemented from AP_HAL::Util.
|
overridevirtual |
Reimplemented from AP_HAL::Util.
|
virtual |
Implements AP_HAL::Util.
Definition at line 37 of file Util.cpp.
|
virtual |
Reimplemented from AP_HAL::Util.
|
overridevirtual |
Reimplemented from AP_HAL::Util.
Definition at line 234 of file Util.cpp.
|
overridevirtual |
Reimplemented from AP_HAL::Util.
Definition at line 187 of file Util.cpp.
|
virtual |
Reimplemented from AP_HAL::Util.
struct { ... } VRBRAIN::VRBRAINUtil::_heater |
Referenced by set_imu_target_temp(), and set_imu_temp().
|
private |
Definition at line 69 of file Util.h.
Referenced by safety_switch_state(), and VRBRAINUtil().
|
private |
int VRBRAIN::VRBRAINUtil::fd = -1 |
Definition at line 78 of file Util.h.
Referenced by run_debug_shell().
int8_t* VRBRAIN::VRBRAINUtil::target |
Definition at line 73 of file Util.h.
Referenced by set_imu_target_temp(), and set_imu_temp().