Can I program a flight controller just like an arduino?

Could I use it as a replacement for the arduino 101with an on board accelerometer etc? I saw that the Openpilot software doesn't give you programming control but can I bypass, maybe by replacing the bootloader?

I reckon you need to explain what is in your mind in a lot more detail.

...R

I saw this cc3d board which has a 32-bit microcontroller with 128KB Flash , 20KB RAM and 4Mbits on-board EEPROM +an accelerometer.

If I could program it like an arduino (not for drones, just for geting the sensor readings and controlling one or two motors or leds etc.) I would have a cheap and strong microcontroller. Is it possible?

As I recall, the software for the CC3D is open source. I think you can download the software from a github site and go from there but it might take a lot of work. I doubt that the Arduino IDE would work for this board. If you do take on this task, be sure to use the CC3D Revo as it has a built in barometer. You can probably go to the LibrePilot website and get more info.

The CC3D uses an STM32F MCU. As long as you know which one of the board connectors is for flashing, you can use the Arduino IDE along with the STM plugin to flash your own "Arduino" code.

This is the same MCU as on the CC3D, but in a more user friendly package:

To program it, check out this youtube vid

Sounds great! I would love to hear from anyone that has experience with it.