Hi guys,
After reading this viewtopic.php?f=2&t=452#p4071 and that viewtopic.php?f=4&t=374#p3291 posts I decide to share my project.
If you looking for some source code for starting point than you can try to look in my hobby project.
Disclaimer:
1) I made it for educational purpose and for fun.
2) Most of comments written in Russian, some architectural decision are ugly, some are overkill.
3) Highly probably I can not help you with you questions because have not too much free time.
https://github.com/barthess/u
Happy hacking!
Chibi Pilot?..
Re: Chibi Pilot?..
Hi barthess,
I have started to migrate to ChibiOS for my autopilot as well.
I have decided for a RTOS because some tasks are really heavy and without a OS would be impossible.
Many of these tasks imply the use of algebra, and I want to ask you if you use (or looking at or planning) some C or C++ library algebra for embedded systems, without
the use of some syscalls such as malloc or free.
I have started to migrate to ChibiOS for my autopilot as well.
I have decided for a RTOS because some tasks are really heavy and without a OS would be impossible.
Many of these tasks imply the use of algebra, and I want to ask you if you use (or looking at or planning) some C or C++ library algebra for embedded systems, without
the use of some syscalls such as malloc or free.
Re: Chibi Pilot?..
Hi noether,
What kind of algebra you mean? Probably CMSIS DSP library can solve your problem (it can be downloaded from ARM official site after free registration). And the DCM algorithm for gyro+accel+magnetometer fusion was taken from Starlino page http://www.starlino.com/dcm_tutorial.html and slightly adopted for my needs.
What kind of algebra you mean? Probably CMSIS DSP library can solve your problem (it can be downloaded from ARM official site after free registration). And the DCM algorithm for gyro+accel+magnetometer fusion was taken from Starlino page http://www.starlino.com/dcm_tutorial.html and slightly adopted for my needs.
Re: Chibi Pilot?..
Hey guys,
What do you think about making a new open source project to a multiwii compatible multi-rotor flight controller using chibios? I'm thinking in using the multiwii configuration software to configure the flight controller initially and after that we can roll our own.
Let me know your impressions.
I don't have many spare time neither but we can do it together.
What do you think about making a new open source project to a multiwii compatible multi-rotor flight controller using chibios? I'm thinking in using the multiwii configuration software to configure the flight controller initially and after that we can roll our own.
Let me know your impressions.
I don't have many spare time neither but we can do it together.
Re: Chibi Pilot?..
Now I am use http://qgroundcontrol.org/ initially created by Lorenz Meier for his quadrotor. Software slightly buggy but mostly usable for my cases. I am very impressed by its communication protocol (mavlink) and not interesting change it. My aircraft is fixed wing plane, but there is only stub for autopilot part of program, so you can create your own piloting logic. All I can propose is translation and cleaning of comments and improvement of code modularity.
Re: Chibi Pilot?..
barthess wrote:Hi noether,
What kind of algebra you mean? Probably CMSIS DSP library can solve your problem (it can be downloaded from ARM official site after free registration). And the DCM algorithm for gyro+accel+magnetometer fusion was taken from Starlino page http://www.starlino.com/dcm_tutorial.html and slightly adopted for my needs.
I will take a look at this library. I was looking for something like Eigen ( http://eigen.tuxfamily.org/index.php?title=Main_Page ) or Armadillo ( http://arma.sourceforge.net/ ). Eigen can produce everything static, just in compile time, but
I do not know why the library always calls for asserts (even with -NDEBUG), their developers have not paid so much attention to this bug as Eigen is not focused for embedded systems. Armadillo is also nice, but as it is based
on Lapack and Blas, it uses malloc and free (as far as I know, ChibiOS do not support that kind of stuff?).
I need the algebra for generate trajectories (guidance), applying control laws, navigation algorithms, etc (minimizing, splines, matrix factorization...).
I guess I could write them on my own, but I know that for sure it will not be faster or more reliable than well established libraries.
I have seen that you are using XBee. I have written drivers for these radios, but now I have to change the hardware layer. Are you using the DMA for your radios? (I guess we are using the same micro, STM32F4)
Re: Chibi Pilot?..
noether wrote:as far as I know, ChibiOS do not support that kind of stuff?
It supported, but not recommended. http://chibios.org/dokuwiki/doku.php?id ... age_memory
noether wrote: I have written drivers for these radios, but now I have to change the hardware layer. Are you using the DMA for your radios? (I guess we are using the same micro, STM32F4)
Yes I use XBee and in previous hardware version I used special driver for it, but now I use it in non packet mode with hardware flow control (simple and reliable). DMA in plans, but current realization uses serial driver.
Re: Chibi Pilot?..
barthess: aren't you using any kind of remote controller(futaba, spektrum, ...)? everything is transmitted via digital link(xbee or something)?
I'm trying to implement the thread that will read all radio channels right now but I have so many questions regarding ICU, PWM and Timer channels. I'll try more here and post another question after.
I'm trying to implement the thread that will read all radio channels right now but I have so many questions regarding ICU, PWM and Timer channels. I'll try more here and post another question after.
Re: Chibi Pilot?..
trunet wrote:aren't you using any kind of remote controller(futaba, spektrum, ...)?
It's planned to be implemented (PPM from model receiver) later like a backup for emergency situation, but currently there is only digital xbee channel. Ancient version of ground software have realized gamepad capturing and transmiting via xbee, but current have not.
Who is online
Users browsing this forum: No registered users and 11 guests