Community
Submit a request
Sign in
DJI SDK Forum
Community
Mobile SDK/UX SDK
如何根据电压计算百分比呀
Completed
Follow
yagnweikang
December 31, 2021 03:26
低电量设置的电压值,但是我们想换算出百分比显示
0
Comments
1 comment
Sort by
Date
Votes
DJI Developer Support
December 31, 2021 08:23
百分比就是当前电压除以总电压呀,Battery.setStateCallback也可以获取到getChargeRemainingInPercent,这个直接是告诉你还剩余百分之多少的电量,你不用算。
0
Comment actions
Permalink
Please
sign in
to leave a comment.
Didn't find what you were looking for?
New post
Comments
1 comment