Coding Questions #199
-
Hi Bitcraze, I have some questions about coding: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi!
Code that is running in a PC is written in python to make it as platform independent as possible, while code that is running in the Crazyflie is written in C (not C++) since it is a better language for low level control in embedded systems. The python lib and client are in python while the Crazyflie firmware is in C.
If you want to run the code in the Crazyflie, you should write it as an Crazyflie application (in C). There is some information about development basics and the app layer. If you want to write C++ code that runs in the PC, you should probably use the driver from Crazyswarm
It depends on what you want to do. If you want to fly nice trajectories, python in the PC is by far the easiest solution. For low level hardware integration, C and the firmware is the way to go. |
Beta Was this translation helpful? Give feedback.
Hi!
Code that is running in a PC is written in python to make it as platform independent as possible, while code that is running in the Crazyflie is written in C (not C++) since it is a better language for low level control in embedded systems. The python lib and client are in python while the Crazyflie firmware is in C.