MotionCommander Interface
Posted: Tue Mar 13, 2018 3:36 am
In the MotionCommander interface, there are the following lines of code:
def _reset_position_estimator(self):
self._cf.param.set_value('kalman.resetEstimation', '1')
time.sleep(0.1)
self._cf.param.set_value('kalman.resetEstimation', '0')
time.sleep(2)
What are the reasons for resetting the position estimator prior to takeoff, and sleeping for 2 seconds?
Also, is there a way to obtain the current battery level from the python client? I can't find any code for that from searching the repository.
Last Q: what is the maximum charging current of that battery? I've been using my computer USB port, but that takes a while. Can I used my phone (Samsung galaxy s6) charger instead? It supplies 5V at 2A.
def _reset_position_estimator(self):
self._cf.param.set_value('kalman.resetEstimation', '1')
time.sleep(0.1)
self._cf.param.set_value('kalman.resetEstimation', '0')
time.sleep(2)
What are the reasons for resetting the position estimator prior to takeoff, and sleeping for 2 seconds?
Also, is there a way to obtain the current battery level from the python client? I can't find any code for that from searching the repository.
Last Q: what is the maximum charging current of that battery? I've been using my computer USB port, but that takes a while. Can I used my phone (Samsung galaxy s6) charger instead? It supplies 5V at 2A.