[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4792: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4793: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3916)
AutoQuad Forum • View topic - Building with GCC - success!
Page 5 of 6

Re: Building with GCC - success!

PostPosted: Mon Apr 11, 2016 5:03 am
by wangyeee

Re: Building with GCC - success!

PostPosted: Mon Apr 11, 2016 5:05 am
by wangyeee

Re: Building with GCC - success!

PostPosted: Mon Apr 11, 2016 5:32 am
by Max

Re: Building with GCC - success!

PostPosted: Mon Apr 11, 2016 8:27 am
by wangyeee
Hi Max,

Thanks for your script, I'll try it later.

I think printf/scanf contributes most part of the problem. The code stops crashing after I increase stack size, but it doesn't produce expected outputs until I apply the aligned(8) fix.

Another thing I'd like to try it to move params io to another low priority task, which only gets executed when it's requested to read/write params. In this case, the stack of other tasks can be reduced.

Regards,
Ye

Re: Building with GCC - success!

PostPosted: Thu Apr 14, 2016 3:42 pm
by wangyeee
Quick Update:
I tried to apply aligned(4) for structs with no 64 bit member, e.g. long long and double. Then printf starts to generate rubbish info in sd card. So I'll keep 8 bytes alignment for now.

Re: Building with GCC - success!

PostPosted: Thu Apr 14, 2016 5:46 pm
by Max

Re: Building with GCC - success!

PostPosted: Thu Apr 14, 2016 9:39 pm
by Max
OK, many updates.... https://github.com/mpaperno/aq_flight_c ... ntegration

"feature_integration" branch has everything so far combined together. There are also separate standalone branches for some of the changes. Summary: https://github.com/mpaperno/aq_flight_c ... CHANGES.md

Ye, the memory changes are also in their own branch, possibly a bit clearer for review: https://github.com/mpaperno/aq_flight_c ... ory_manage (but please make changes against the feature_integration branch.)

Cheers,
-Max

Re: Building with GCC - success!

PostPosted: Fri Apr 15, 2016 3:39 am
by wangyeee
Wow, that's huge amount of work. I'll go through those changes and puts my $0.01 there :D

Regards,
Ye

Re: Building with GCC - success!

PostPosted: Fri Apr 15, 2016 4:05 am
by Max
It does look like a lot, but hopefully mostly because I broke it down into many smaller pieces... ;)

BTW, I implemented the idea of having all the config param reads/write requests funneled through one thread -- supervisor. It's low-priority, and was already calling most of those routines anyway (eg. when using stick commands to save params). This reduces required COMM stack space quite a bit. I did add some space to SUPERVISOR stack, just in case, but it's not really required.

Anyway, the relevant commit is here: https://github.com/mpaperno/aq_flight_c ... 0cb0dc2dae

-Max

Re: Building with GCC - success!

PostPosted: Sun Jul 24, 2016 1:27 pm
by fly_boy
that is a good news, great job!