趣味で作ってるロボット用ソフトウェア
 All Classes Files Functions Enumerations Enumerator Friends Pages
Public Types | Public Member Functions | List of all members
hrk::Battery Class Reference

Public Types

enum  { Error = -1 }
 

Public Member Functions

bool is_available () const
 
bool is_charging () const
 
int remaining_percent () const
 
int remaining_second () const
 

Detailed Description

Examples:
battery_example.cpp.

Member Function Documentation

int Battery::remaining_percent ( ) const

バッテリーの充電率を返す

Return values
[0,100]充電率
-1エラー
Examples:
battery_example.cpp.

The documentation for this class was generated from the following files: