Control Commands and Logging in the same python script
Posted: Tue May 01, 2018 1:07 am
Dear all,
I have been using the examples of https://github.com/bitcraze/crazyflie-l ... r/examples. In my project I can send commands to the CF2 for exmaple modifying the script ramp.py. On the other hand, with the script basiclog.py I can read pediodically the log of the copter. My problem now is that I do not know how I can read the sensor information by logging function and at the same time send commands to the copter in the same script. I need this functionality to implement a controller like PID or others in a python script to control the copter.
Somebody can help me to this issue
Best regards,
Rafael Socas
I have been using the examples of https://github.com/bitcraze/crazyflie-l ... r/examples. In my project I can send commands to the CF2 for exmaple modifying the script ramp.py. On the other hand, with the script basiclog.py I can read pediodically the log of the copter. My problem now is that I do not know how I can read the sensor information by logging function and at the same time send commands to the copter in the same script. I need this functionality to implement a controller like PID or others in a python script to control the copter.
Somebody can help me to this issue
Best regards,
Rafael Socas