Question about cfclient(ui->flightTab)

Firmware/software/electronics/mechanics
Post Reply
waldo
Beginner
Posts: 3
Joined: Fri Jun 19, 2015 1:50 am

Question about cfclient(ui->flightTab)

Post by waldo »

Hi
I 've been seeing the source code of cfclient,
(https://github.com/bitcraze/crazyflie-c ... ightTab.py) .I 've almost figure out how the cfclient worked, but i didn't find out when the class FlightTab is init, and when the pyqtSignal _imu_data_signal is emited, I want to know the function name that have relationship with these. can anyone help Thanks!!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Question about cfclient(ui->flightTab)

Post by arnaud »

For the initialisation, all tabs are initialised there: https://github.com/bitcraze/crazyflie-c ... in.py#L275
This code lists all the tabs files and loads all of them (so that it makes it easy to add new tabs).

As for the signal it is connected to the crazyflie IMU by callback there: https://github.com/bitcraze/crazyflie-c ... ab.py#L299
Post Reply