Simulating a battery power level

I'm using a patch to simulate a vehicle moving around a 2D environment and I would like to give it a battery.
Is there a way to create a counter that counts down from 100(%) when the patch is moving (battery is draining) and counts up (charging) when the patch is at the specified charging point?
It would be great if the timer could count up/down at variable rates.

답변 (0개)

이 질문은 마감되었습니다.

커뮤니티

더 많은 답변 보기:  Power Electronics Community

질문:

2015년 10월 5일

마감:

2023년 1월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by