The conversion from int to float is what I think they call a widening conversion, meaning you'll never get an overflow or lose precision in the conversion, which is probably why they don't warn about it, it's perfectly safe to do implicitly... though the arduino IDE is rather rudimentary. I've been getting to know Atmel Studio... I like it but it has some things that peeve me to no end with autocomplete

While its true that you can do it, and it seems to go away from the white papers so to speak from Arduino. That's not what I'm really talking about anymore.

Context is what I'm getting after. When I see two int variables doing math, I see int math. When I see two Strings doing stuff, I think Strings. When I see char arrays I think char, does that make sense ? Without a typecast, to me it looks wrong. You take unequal types and try to equate them without a typecast, throws all kinds of errors in other IDEs for similar languages. Java, c#, etc. And while the compiler can and will make it happen, without the typecast only the original author knows the intent behind it.

Like for instance, in java you can't just take a int and print it to string. You have to add it to a string, or typecast it.

I've been setting my idle to 40 (full open). Then snapping closed to 880 on take off. It's working pretty good, using the accel to keep it at idle when rpms fall then slightly increase over idle.. which would make it bounce back into 880. So making sure the turbo isn't accelerating while waiting at idle seems to be working pretty good!

I'll probably finalize it later by making the walkdown rpm slightly higher and check against acceleration instead of rpm.

So far the off idle response is super awesome, and I haven't had an issue with it going 40 > 800 and back and forth so seems about right atm. I'll update to 1.3.0 after maybe another month and running it.

Logged

AMP2 Corinthians 8:21For we take thought beforehand and aim to be honest and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.

Looks like float math only goes up, not down. ie: ints can go up to floats, but floats can't be pressed down to ints without typecasting. I know a 'duh' moment, but wondering how smart the compiler really is.

Logged

AMP2 Corinthians 8:21For we take thought beforehand and aim to be honest and absolutely above suspicion, not only in the sight of the Lord but also in the sight of men.