Making Flow chart for Multiwii development?

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Making Flow chart for Multiwii development?

Post by nhadrian »

Hi all,

What do you think of th idea, making a flowchart for the whole MWI code or at least for basic parts of code?
That could be really useful for development. Also every modification could be marked in it.

For example in microsoft visio?

I know this is a huge job but makes the code flow more perspicuous....

Or completelly stupidness and useless?

BR
Adrian

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: Making Flow chart for Multiwii development?

Post by Hamburger »

It would be good to have.
But even better is to find a tool which does produce such output. Then the graph will not become outdated but can be kept current. Else a lot of effort will go into a blind alley.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Making Flow chart for Multiwii development?

Post by copterrichie »

Was the debate about moving to GitHub about its ability to do this?

User avatar
alll
Posts: 220
Joined: Fri Dec 07, 2012 9:53 am

Re: Making Flow chart for Multiwii development?

Post by alll »

+1

Sebbi
Posts: 478
Joined: Sun Jul 08, 2012 1:08 am
Location: Germany
Contact:

Re: Making Flow chart for Multiwii development?

Post by Sebbi »

Do you mean something like Doxygen would generate from the code? Or something that does explain what happens at each state, etc? Possibly realtime, like a MultiWii simulator you can peak into?

User avatar
alll
Posts: 220
Joined: Fri Dec 07, 2012 9:53 am

Re: Making Flow chart for Multiwii development?

Post by alll »

More what happens at each stage, the "setup" and then the "loop". Focusing on the main functions and timings.

Sebbi
Posts: 478
Joined: Sun Jul 08, 2012 1:08 am
Location: Germany
Contact:

Re: Making Flow chart for Multiwii development?

Post by Sebbi »

So nothing like the graphs Doxygen would generate (examples attached)? Timings may be difficult because the dependence on compile options (config.h) ...

loop()
loop()



Setup()
Setup()
Last edited by Sebbi on Sun Jan 06, 2013 10:15 pm, edited 1 time in total.

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: Making Flow chart for Multiwii development?

Post by nhadrian »

Oh, looks great. I'll test Doxygen!!!

User avatar
alll
Posts: 220
Joined: Fri Dec 07, 2012 9:53 am

Re: Making Flow chart for Multiwii development?

Post by alll »

Hi,

Nice, but all this you can have it in Eclipse IDE or other recent dev tool. I was more after some summary of the code logic used (a human thing).

Timings and a bit of comments would be nice. Is something like this possible?

I would like to do easy tests like :
At power up of the board, getting the rx signal directly to the motor outputs bypassing the sensors and pids. And where in code can i place it, at the end of setup()?

Basically:
Code :?:
while (1) {
computeRC(); // so i have the transmitter signals in rcData[]
blinkLED(4,20, 4); //delay a bit
writeAllMotors(rcData[THROTTLE]); //output the rx signal to the motor output
}

Thanks,
manu

Thanks,
manu
Attachments
mwii-code-logic.png

User avatar
AllenCharles
Posts: 1
Joined: Thu Oct 31, 2013 12:19 pm
Location: 831 Landa St # E New Braunfels, TX 78130
Contact:

Re: Making Flow chart for Multiwii development?

Post by AllenCharles »

Hey Sebbi I really appreciate your work and effort to make a good chart, according to me every entry is properly mentioned but only the issue it gets too messy. It will be much better if it is shown in a proper manner.

_______________
chart software

Sebbi
Posts: 478
Joined: Sun Jul 08, 2012 1:08 am
Location: Germany
Contact:

Re: Making Flow chart for Multiwii development?

Post by Sebbi »

I suspect spam ... first post, stock photo as avatar, link to chart software and english doesn't seem to be his first language.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: Making Flow chart for Multiwii development?

Post by Alexinparis »

Sebbi wrote:I suspect spam ... first post, stock photo as avatar, link to chart software and english doesn't seem to be his first language.

I suspect also ;)

Post Reply