Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get battery charging status? #42

Open
jieunko opened this issue Nov 14, 2023 · 1 comment
Open

How can I get battery charging status? #42

jieunko opened this issue Nov 14, 2023 · 1 comment

Comments

@jieunko
Copy link

jieunko commented Nov 14, 2023

Hi I am using AgileX tracer robot and I want to get battery status and charging info of the robot?
Would it be possible? How should I achieve that status info?
Thank you in advance!

@splendidjie
Copy link

I'm having the same problem.
scout_mini_omni_demo.cpp sample code can run normally, so I added the following code:

auto SensorState = scout->GetCommonSensorState();
std::cout << "Battery information (power, health, voltage, current, temperature): "
<< SensorState.bms_basic_state.battery_soc1<< ", "
<< SensorState.bms_basic_state.battery_soh<< ", "
<< SensorState.bms_basic_state.voltage<< ", "
<< SensorState.bms_basic_state.current<< ", "
<< SensorState.bms_basic_state.temperature
<< std::endl;

The output shows:
Battery information (power, health, voltage, current, temperature): , , 0, 0, 0
What's going on here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants