|
GKD.RoboCtrl
|
超极电容 更多...
超极电容
在文件 super_cap.h 第 12 行定义.
#include <super_cap.h>
类 | |
| struct | info_type |
Public 成员函数 | |
| std::string | desc () const |
| bool | init (const info_type &info) |
| awaitable< void > | set (bool enable, uint16_t power_limit) |
| 设置超电状态 | |
| float | chassis_power () const |
| 当前底盘功率 | |
| uint16_t | chassis_power_limit () const |
| 当前功率限制 | |
| uint8_t | energy () const |
| 当前超电能量 | |
Public 成员函数 继承自 roboctrl::device::device_base | |
| device_base (const std::chrono::nanoseconds offline_timeout) | |
| bool | offline () |
| 判断设备是否离线 | |
| 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 成员函数 继承自 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 |
|
inline |
当前底盘功率
在文件 super_cap.h 第 33 行定义.
|
inline |
当前功率限制
在文件 super_cap.h 第 37 行定义.
|
inline |
在文件 super_cap.h 第 18 行定义.
|
inline |
当前超电能量
在文件 super_cap.h 第 42 行定义.
在文件 super_cap.cpp 第 16 行定义.
| roboctrl::awaitable< void > super_cap::set | ( | bool | enable, |
| uint16_t | power_limit | ||
| ) |