View unanswered posts | View active topics It is currently Sun Oct 22, 2017 4:33 pm



Reply to topic  [ 268 posts ]  Go to page 1, 2, 3, 4, 5 ... 27  Next
Daily WTF 
Author Message
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14825
Location: Home sweet home!
I submitted this pearl of a snippet to the daily WTF this morning :

<constant name="twoStroke">&quot;Four-stroke&quot;</constant>

NOT Otto OR YES?

how about :

<constant name="Strokes">Four</constant>

What do you think?

I think that if they are going to do it that way, they should do it like this :

<constant name="twoStroke?">Four-stroke!</constant>

Got any gems like that?

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Tue Feb 12, 2008 1:01 pm
Profile WWW
LQFP112 - Up with the play
User avatar

Joined: Tue Jan 15, 2008 5:14 pm
Posts: 215
haha this is awesome!

i bet they've also implemented the wiwntoi() function

/* this function converts a number from the written-in-words number form to the integer representation*/
int wiwntoi(char* wn){

...

}

_________________
Legal disclaimer for all my posts: I'm not responsible for anything, you are responsible for everything. This is an open and free world with no strings attached.


Tue Feb 12, 2008 10:28 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14825
Location: Home sweet home!
Bruce wrote:
For a logic one, the data direction register sets the processor port as an *input*, so there is no drive


OMFG WTF??

http://www.msefi.com/viewtopic.php?p=191125#191125

Another "clever hack" that is highly likely to cause headaches in the future...

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sun Mar 02, 2008 10:18 am
Profile WWW
LQFP144 - On Top Of The Game
User avatar

Joined: Sat Feb 23, 2008 8:58 pm
Posts: 387
Fred wrote:
Bruce wrote:
For a logic one, the data direction register sets the processor port as an *input*, so there is no drive


OMFG WTF??

http://www.msefi.com/viewtopic.php?p=191125#191125

Another "clever hack" that is highly likely to cause headaches in the future...

I'd be curious to hear what the Freescale people would think about that one: driving a 3.3V device from a 5V one by using the pin as an input.

That's a clever hack for bench testing but an automotive environment is not a friendly one for hacks. But it's going to be interesting to see what happens with that one.

Jean


Sun Mar 02, 2008 5:46 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14825
Location: Home sweet home!
I bet you more than a few people cook the cpld by coding it as an output by accident as force of habit during dev. It's a clever cool idea, and I like such tricks, but they aren't a full blooded solution. Also, using C32 devices on it... hmmmm.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sun Mar 02, 2008 10:11 pm
Profile WWW
LQFP144 - On Top Of The Game
User avatar

Joined: Sat Feb 23, 2008 8:58 pm
Posts: 387
Fred wrote:
Also, using C32 devices on it... hmmmm.

Isn't it how you do design? See what the requirements are and then use what you have (instead of what should be used).

hmmmm indeed.


Sun Mar 02, 2008 11:07 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14825
Location: Home sweet home!
Thats also why i don't want to try to do too much with our chip. But I'll discuss that where it belongs in that other thread when I find time to do it.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sun Mar 02, 2008 11:33 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14825
Location: Home sweet home!
http://www.msefi.com/viewtopic.php?p=191248#191248

Poor Ken :-(

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Mon Mar 03, 2008 7:15 pm
Profile WWW
LQFP112 - Up with the play
User avatar

Joined: Tue Jan 15, 2008 5:14 pm
Posts: 215
Fred wrote:
http://www.msefi.com/viewtopic.php?p=191248#191248

Poor Ken :-(


this would be a great time for them to change camps :shock:

_________________
Legal disclaimer for all my posts: I'm not responsible for anything, you are responsible for everything. This is an open and free world with no strings attached.


Mon Mar 03, 2008 7:53 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14825
Location: Home sweet home!
But but but, they'll try to optimise our code with GASP assembly GASP :-|

I'm sure some of them will come sooner or later, I'm not sure that now is the right time, I've already fallen victim to thinking inside the box a bit too much. I'm making a concerted effort to avoid that. They might be a bit too close to "how it's done" rather than "how it could be done".

When I was looking at memory structure trying to figure our how to setup memory.x at all, I was appalled to find stuff in there that fully isn't required and is misleading and just unused etc. I was expecting a nice modular clean set of files, instead I found Al's code modified and spread out :-| not bad, but not good either. They should have started from blank. Or at least gutted it totally first. and put stuff back in selectively. IMO anyway.

I want them over here (though I doubt Ken will come) but not yet.

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Mon Mar 03, 2008 7:58 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 268 posts ]  Go to page 1, 2, 3, 4, 5 ... 27  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.