I have been tinkering around with my new multiranger and original flowdeck. both of the demo scripts run fine but in the push one, I would like to have it hover higher off the ground. I have been poking around at the different parts of the code, but am new to python. Where can I change the value of how high it hovers? I have a flowdeck v2 on the way, but that should not be the issue. Any guidance appreciated. Thanks!
Mike
modifying multiranger_push.py
Re: modifying multiranger_push.py
This example uses the Motion commander that can take a default-height as argument when created: https://github.com/bitcraze/crazyflie-l ... der.py#L62
So creating the motion commander in that way would change the default height (https://github.com/bitcraze/crazyflie-l ... er_push.py):
So creating the motion commander in that way would change the default height (https://github.com/bitcraze/crazyflie-l ... er_push.py):
Code: Select all
with MotionCommander(scf, default_height=0.8) as motion_commander:
-
- Beginner
- Posts: 26
- Joined: Mon Apr 11, 2016 4:33 pm
Re: modifying multiranger_push.py
Thank you! That is exactly the info I needed. I was looking in the motion commander package and saw the different variables I could call, but was not exactly sure how to do that. I can then apply this principle to other scripts. I am thinking of making a variation of the point cloud where you can fly it but it avoids all obstacles so you don't fly it in to a wall.
Thanks,
Mike
Thanks,
Mike