Yep, I fixed a bug in the throttle control code here yesterday by irradicating all the warnings. float cast to unsigned int. correct procedure is to signed int, then unsigned as this is defined. thing works much more smoothly now.
I'm sorry, but I can't read the above code at all. It is incrementing a pointer, though, not the value pointed to, I guess that is the issue? I hate typedefs...
I don't like typedef's either. One of the things that irritates me with the arduino ide. Which brings something I have been thinking about. What is everyone's ide of choice? I like Keil but it doesn't support a lot of stuff. Eclipse and atmel studio are cool, but I kinda don't like VS.
I installed that. Takes a while to load but looks nice. I haven't played with it too much. Out of all of them the goofy Arduino IDE seems to load up the fastest, even though it's java hell.
For me, an IDE taking a while to start and burning some RAM isn't a big deal as long as it does good things and is reasonably responsive when you're in it and using it *all day*. Not sure about C in VSCode but someone probably did something for it. Maybe I should give it a whirl, but the C stuff in eclipse is GREAT and I can say that with a decade of CDT experience.
I'm still IDE hunting. I'm looking for something that is good for old microcontrollers.. Like I have this old Ford EEC-IV brain with an intel 8061 mpu. I can't even find a real datasheet for it. I like this old stuff and want to play with it, but none of my toys do it. If I was doing IOT stuff, everything would be easy.
IDEs support languages, not tools. Tools support CPUs, and variants of them. If you can find a command line tool to do C or ASM for that CPU then you should be able to make eclipse CDT work with it, AFAIK.