Okay I had a thread on this already but it was under my friend's account and when I replied to it under my own account nobody knew what was going on and nobody responded after that so thats why I'm making a new one. What I'm trying to do is make a somewhat simulated datalogging program, one that you would hook up to your car's ECU to track its readings. I already have this code from Narue :) thanks again.
int main()
{
int count = 0;
for ( ; ; ) {
if ( GetAsyncKeyState ( VK_ESCAPE ) != 0 )
break;
else if ( GetAsyncKeyState ( VK_UP ) & SHRT_MAX ) {
if ( count < 100 )
++count;
}
else if ( GetAsyncKeyState ( VK_DOWN ) & SHRT_MAX ) {
if ( count > 0 )
--count;
}
std::cout<< std::setw ( 3 ) << count <<"% Throttle\r";
Sleep ( 100 );
}
}
And I'm trying to add in more readings on different lines. I already have the forumulas needed for them to be stemmed off the throttle reading seen above.
I'm trying add in the engine's RPM on the second line
RPM = TPP * 74.5 + 750
I'm trying to add in the car's KM/H on the third line
KPH = RPM * 0.0075
And I'm also trying to add in a VTEC indicator to just say VTEC ON/OFF on the fourth line.
If RPM greater than 5400 then say VTEC ENGAGED, if not then say VTEC DISENGAGED.
Now I've been trying to work this out myself for quite sometime but it seems I'm just no good at C++. I'm fine with Qbasic (ha) and HTML but C++ just seems to confuse the heck outta me. Please help if you can it would be greatly appreciated :)