Hi,
I am kinda bouncing off the rev limiter here trying to work this through. I come from C and this is a bit different.
So 'Plane' and 'Passenger' classes are now separated, and 'Plane'...
Type: Posts; User: RocketMan46
Hi,
I am kinda bouncing off the rev limiter here trying to work this through. I come from C and this is a bit different.
So 'Plane' and 'Passenger' classes are now separated, and 'Plane'...
Hi,
Yes i agree, are you therefore saying the 'plane' class shouldn't inherit from the 'passenger' class. I am still trying to get up to speed with OOP. I do not fully understand what i need to...
Hi laserlight,
Thank you for your help and advice. I have drafted out my basic example and added the code below - it is such a small program i thought it would be easier to add the code and then...
Hi,
I will try and explain a different way. Below is picture of a basic plane seat layout. I want to be able to book for example seat A1 to (Name: Fred, Age: 21, Food: Fish & Chips).
So i...
Hi All,
I am quite new to c++ and getting a better understanding of classes and vectors. I have decided to write an airplane booking program to add and remove passengers onto a plane. So my...
Hi Salem,
Thanks for your help.
From you vast experience, and i think you previously posted you are an embedded programmer, and guessing the future would you personally stick to C only or...
Hi Salem,
OK so i am going to make the jump from C to C++. Would you fully understand data structures and pointers in C first, or move straight to C++. I do not really know how to approach...
Hi All,
This is a programming question but i will just explain my work situation. I am an electronics/ embedded engineer working on 8 and 16 bit micros using embedded c. The job market seems to...
Hi,
I am struggling to read an ADC value, offset this value then convert into a battery voltage.
Below are my value:
* ADC read range (0V - 5V) == (0 - 1023)
* The ADC read range i am...
Hi All,
I am struggling a little bit, and I am trying to find a good tutorial on table based state machines. I understand the switch case method is not preferred. Does anybody recommend a good...
Hi,
I would like to convert an ADC 0-5V reading into a percentage value 0-100%. I have tried a couple of attempts below, and also tried in a flat C compiler using printf and I still get zero.
...
Hi Salem,
No they are not all on the same I/O port. If it is beneficial i could possibly modify to one port. Do you have a better solution?
Thanks,
Rocketman46
Hi Jim,
Thanks for your reply.
I am using a 16bit micro running embedded c. I just tried to keep the question simple and c related.
Cheers,
Rocketman46
Hi all,
I need a bit of advice on the best and most efficient way to read 10 I/O pins. Main will be constantly scanning the pins and anytime one of the 10 pins goes logic high it will be required...
Hi Salem,
So confirming there is no correct answer, you would maybe stick with the harder languages C/ C++ and specialize?
Embedded C/ Electronics engineers seem quite poorly paid for the...
Hi All,
I am currently an embedded c programmer and I up for a language direction change. I would appreciate feedback on what is considered the boom area in programming, C++, Java, Android etc,...
Hi,
I am just about to update Code Blocks to the latest version on windows 8.1. Do I need to uninstall then reinstall, or just load the new version over the top of the old version.
Thanks,
...
OK, I will try and write my own buffer and come back with my solution in steps.
Currently I never use a debugger only print to screen in both windows and embedded. Would you say this is a major...
Hi Matticus,
Thanks for your detailed reply, that was very helpful.
My next problem is, after reading numerous examples, I do not understand how to implement a circular buffer. Most examples...
Hi,
I need some advise on how to implement a circular buffer, I do not really understand why it is used. I want to read a string from a 8 bit, 1 byte port on a micro. So if I read hello in on...
Hi,
Thanks for your reply. So the below brief example, when initialize() is called, only the FORD code will be implemented.
Thanks
Rocketman46
Hi all,
I am struggling to understand how to implement the below preprocessor directives. If for example I want to use the FORD code, how would I use/ access this code. Do I put this code in...
Hi Mario F & Elysia,
Thanks for your input. I have done lots of reading and I found the below link listing the best 10 cross platform compilers. Numbers #4 cocos2d, #6 corona and #qt look...
Hi All,
Excuse me if I am posting this in the wrong area. I am an embedded C programmer and I am just about to develop an app for Android/ IOS. I would like to develop this in C++ or C. Reading...
Thank you for taking the time to look at my problem.
OK so added below are four functions. The first two are the original that only return one variable and work correctly. The second two...