Click here to Skip to main content
15,886,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Detect Acceleration and Retrieve Cell ID Pin
Nelek22-Dec-09 22:16
protectorNelek22-Dec-09 22:16 
GeneralRe: Detect Acceleration and Retrieve Cell ID Pin
0705646H22-Dec-09 22:23
0705646H22-Dec-09 22:23 
GeneralRe: Detect Acceleration and Retrieve Cell ID [modified] Pin
Nelek23-Dec-09 0:07
protectorNelek23-Dec-09 0:07 
AnswerRe: Detect Acceleration and Retrieve Cell ID Pin
Nelek23-Dec-09 0:26
protectorNelek23-Dec-09 0:26 
GeneralRe: Detect Acceleration and Retrieve Cell ID Pin
0705646H23-Dec-09 0:53
0705646H23-Dec-09 0:53 
GeneralRe: Detect Acceleration and Retrieve Cell ID Pin
Nelek23-Dec-09 1:42
protectorNelek23-Dec-09 1:42 
GeneralRe: Detect Acceleration and Retrieve Cell ID Pin
0705646H27-Dec-09 15:18
0705646H27-Dec-09 15:18 
GeneralRe: Detect Acceleration and Retrieve Cell ID Pin
Nelek27-Dec-09 22:39
protectorNelek27-Dec-09 22:39 
[quote]
Sorry, for the late reply.
[/quote]

No problem, holidays are holidays Smile | :)

[quote]
Whereas for the X1, Y1 and Z1 is to keep on reading it
[/quote]

Ok, but did you check what I said you about "ADCON0"?? and about the endless loop / initialization of variables?

[quote]
If there is the changes of value >15 or <15
[/quote]

Not sure about what you mean... Changes bigger than 15 units in one or the other direction? or just a value different of 15?

If the first, then you can do (absolute value or module) |lastValue - actualValue| > 15
If the second, then actualValue != 15

Put the conditions in an IF and then call your function.


[quote]
For ADRESH and ADRESL, I did some researched on it. It is used to convert the analog signal to digital. If we used WATCH on the MPLAB, it will able to show the value there. However, I am not sure if I have to include any library (.h) file in my programming.
[/quote]

If you need to use specifical functions to interact with them (and it seems so), I am not sure but I think you will do have to include something, a library, a header, a dll or whatever the components need.

Sorry, but your program is very, very specifical and the extern components make it even harder to follow/understand what happens. I have no experience at all with them. I have given you some feedback about what I saw at the first sight, but I can not help you in a deeper way.


I hope you can solve it.

My last tip is:

Investigate a bit more, and reask in a future. But not just repeating the question: improve, change and make it more specific. Demostrate that you have done research and tried to solve it, but put a link to this thread in your new question, so the people can get the scenario and read all your comments / additional information.

I would make it in parts, first try to do a good structure for a C program. Puting pseudocode and a lot of comments where you need to do the external interactions, but in fact only doing tiny actions just to check if that part of code is executing as you want or not. Once you have your C program, continue with only one external component and get it to work, then the next one. If you try all at once, you will have a lot of potential error-factors and will be very, very difficult to isolate where the problem is.

Regards.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.

QuestionHow to send keyboard event to other program ? Pin
wangningyu22-Dec-09 18:53
wangningyu22-Dec-09 18:53 
AnswerRe: How to send keyboard event to other program ? Pin
Rajesh R Subramanian22-Dec-09 18:57
professionalRajesh R Subramanian22-Dec-09 18:57 
AnswerRe: How to send keyboard event to other program ? Pin
KingsGambit22-Dec-09 19:16
KingsGambit22-Dec-09 19:16 
GeneralRe: How to send keyboard event to other program ? Pin
wangningyu22-Dec-09 19:21
wangningyu22-Dec-09 19:21 
GeneralRe: How to send keyboard event to other program ? Pin
Rajesh R Subramanian22-Dec-09 19:23
professionalRajesh R Subramanian22-Dec-09 19:23 
GeneralRe: How to send keyboard event to other program ? Pin
KingsGambit22-Dec-09 19:39
KingsGambit22-Dec-09 19:39 
QuestionSplit CString Pin
kumar sanghvi22-Dec-09 18:33
kumar sanghvi22-Dec-09 18:33 
AnswerRe: Split CString [modified] Pin
Rajesh R Subramanian22-Dec-09 18:51
professionalRajesh R Subramanian22-Dec-09 18:51 
RantRe: Split CString Pin
Adam Roderick J22-Dec-09 21:51
Adam Roderick J22-Dec-09 21:51 
GeneralRe: Split CString Pin
Rajesh R Subramanian22-Dec-09 23:17
professionalRajesh R Subramanian22-Dec-09 23:17 
AnswerRe: Split CString Pin
KingsGambit22-Dec-09 19:02
KingsGambit22-Dec-09 19:02 
Question/MTd' and '/clr' command-line options are incompatible Pin
Anu_Bala22-Dec-09 18:33
Anu_Bala22-Dec-09 18:33 
AnswerRe: /MTd' and '/clr' command-line options are incompatible Pin
KingsGambit22-Dec-09 19:08
KingsGambit22-Dec-09 19:08 
Questionfunction access in base and derived classes Pin
JudyL_MD22-Dec-09 8:44
JudyL_MD22-Dec-09 8:44 
AnswerRe: function access in base and derived classes Pin
Richard Andrew x6422-Dec-09 10:25
professionalRichard Andrew x6422-Dec-09 10:25 
GeneralRe: function access in base and derived classes Pin
JudyL_MD22-Dec-09 11:14
JudyL_MD22-Dec-09 11:14 
GeneralRe: function access in base and derived classes Pin
Richard Andrew x6422-Dec-09 11:17
professionalRichard Andrew x6422-Dec-09 11:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.