GKD.RoboCtrl
RoboMaster Linux 电控:异步 IO、设备驱动与机器人控制
载入中...
搜索中...
未找到
roboctrl::device::super_cap类 参考

详细描述

在文件 super_cap.h 第 10 行定义.

类 roboctrl::device::super_cap 继承关系图:
roboctrl::device::super_cap 的协作图:

类

struct  info_type
 

Public 成员函数

std::string desc () const
 
bool init (const info_type &info)
 
void connect ()
 
void start ()
 
awaitable< void > task ()
 
awaitable< void > stop_output ()
 
awaitable< void > set (bool enable, uint16_t power_limit)
 
bool configured () const
 
float chassis_power () const
 
uint16_t chassis_power_limit () const
 
uint8_t energy () const
 
uint8_t error_code () const
 
uint64_t sample_sequence () const
 
- Public 成员函数 继承自 roboctrl::device::device_base
 device_base (const std::chrono::nanoseconds offline_timeout)
 
bool offline () const
 判断设备是否离线
 
void tick ()
 更新心跳时间
 
awaitable< void > task ()
 默认的task
 
- Public 成员函数 继承自 roboctrl::utils::immovable_base
 immovable_base (immovable_base &&)=delete
 
immovable_base & operator= (immovable_base &&)=delete
 
- Public 成员函数 继承自 roboctrl::utils::not_copyable_base
 not_copyable_base (const not_copyable_base &)=delete
 
not_copyable_base & operator= (const not_copyable_base &)=delete
 
- Public 成员函数 继承自 roboctrl::utils::singleton_base< super_cap >
 singleton_base (const singleton_base &)=delete
 
singleton_base & operator= (const singleton_base &)=delete
 

静态 Public 成员函数

static bool valid_configuration (const info_type &info)
 
- 静态 Public 成员函数 继承自 roboctrl::utils::singleton_base< super_cap >
static super_cap & instance ()
 获取单例实例
 

额外继承的成员函数

- Protected 成员函数 继承自 roboctrl::log::logable< super_cap >
void log (log_level level, std::format_string< Args... > fmt, Args &&...args) const
 输出日志
 
void log_debug (std::format_string< Args... > fmt, Args &&...args) const
 输出debug日志
 
void log_info (std::format_string< Args... > fmt, Args &&...args) const
 输出info日志
 
void log_warn (std::format_string< Args... > fmt, Args &&...args) const
 输出warn日志
 
void log_error (std::format_string< Args... > fmt, Args &&...args) const
 输出error日志
 
- Protected 属性 继承自 roboctrl::device::device_base
const std::chrono::nanoseconds offline_timeout_
 设备离线超时时间
 
std::chrono::nanoseconds tick_time_
 上次心跳时间
 
bool terminated_ = false
 

构造及析构函数说明

◆ super_cap()

roboctrl::device::super_cap::super_cap ( )
inline

在文件 super_cap.h 第 23 行定义.

成员函数说明

◆ chassis_power()

float roboctrl::device::super_cap::chassis_power ( ) const
inline

在文件 super_cap.h 第 38 行定义.

◆ chassis_power_limit()

uint16_t roboctrl::device::super_cap::chassis_power_limit ( ) const
inline

在文件 super_cap.h 第 39 行定义.

◆ configured()

bool roboctrl::device::super_cap::configured ( ) const
inline

在文件 super_cap.h 第 37 行定义.

◆ connect()

void super_cap::connect ( )

在文件 super_cap.cpp 第 16 行定义.

◆ desc()

std::string roboctrl::device::super_cap::desc ( ) const
inline

在文件 super_cap.h 第 30 行定义.

◆ energy()

uint8_t roboctrl::device::super_cap::energy ( ) const
inline

在文件 super_cap.h 第 40 行定义.

◆ error_code()

uint8_t roboctrl::device::super_cap::error_code ( ) const
inline

在文件 super_cap.h 第 41 行定义.

◆ init()

bool super_cap::init ( const info_type &  info)

在文件 super_cap.cpp 第 8 行定义.

◆ sample_sequence()

uint64_t roboctrl::device::super_cap::sample_sequence ( ) const
inline

在文件 super_cap.h 第 42 行定义.

◆ set()

awaitable< void > super_cap::set ( bool  enable,
uint16_t  power_limit 
)

在文件 super_cap.cpp 第 39 行定义.

◆ start()

void super_cap::start ( )

在文件 super_cap.cpp 第 32 行定义.

◆ stop_output()

awaitable< void > super_cap::stop_output ( )

在文件 super_cap.cpp 第 58 行定义.

◆ task()

awaitable< void > super_cap::task ( )

在文件 super_cap.cpp 第 47 行定义.

◆ valid_configuration()

static bool roboctrl::device::super_cap::valid_configuration ( const info_type &  info)
inlinestatic

在文件 super_cap.h 第 24 行定义.


该类的文档由以下文件生成: