Author |
Message |
Topic: include <math.h> twice |
NivNavick
Replies: 2
Views: 4736
|
Forum: General CCS C Discussion Posted: Sat Mar 05, 2011 3:21 am Subject: include <math.h> twice |
Hi ,
I included math.h file in two of my .c files and it gives me an error
Function definition different from previous definition y != float
when I delete one of the two includes it's works perf ... |
Topic: IR Delay |
NivNavick
Replies: 15
Views: 18517
|
Forum: General CCS C Discussion Posted: Sun Feb 06, 2011 8:45 am Subject: IR Delay |
int16 ir(int16 pin)
{
set_TIMER5(0);
while(((input(pin)==1))&&(get_timer5()<=800));
if(get_timer5()> ... |
Topic: IR Delay |
NivNavick
Replies: 15
Views: 18517
|
Forum: General CCS C Discussion Posted: Sun Feb 06, 2011 5:22 am Subject: IR Delay |
What IR sensor are you suggesting? |
Topic: IR Delay |
NivNavick
Replies: 15
Views: 18517
|
Forum: General CCS C Discussion Posted: Sun Feb 06, 2011 2:21 am Subject: IR Delay |
maybe the electronic circle cause it? |
Topic: IR Delay |
NivNavick
Replies: 15
Views: 18517
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2011 11:07 pm Subject: IR Delay |
A 'simple' sensor would only detect, usually in an analog form the object of interest, in this case IR energy, however this is what I call a 'smart' sensor', loaded with electronics to 'filter' the si ... |
Topic: IR Delay |
NivNavick
Replies: 15
Views: 18517
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2011 3:27 pm Subject: IR Delay |
I'm competing in Robocup Junior Soccer competition and for that I need the ball.
What do you mean by not just IR detector and smart sensor?
thanks!
P.S
I am from software team, not electron ... |
Topic: IR Delay |
NivNavick
Replies: 15
Views: 18517
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2011 11:19 am Subject: IR Delay |
But usually IR sensors have a delay sometimes?
I checked two different types of IR sensors and both
Of them have delay.
P.S.
I am using TSop1240.
Thanks |
Topic: IR Delay |
NivNavick
Replies: 15
Views: 18517
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2011 10:40 am Subject: IR Delay |
There is no code,I saw this by the Scope.
And my question was if thus can be solved by code? |
Topic: IR Delay |
NivNavick
Replies: 15
Views: 18517
|
Forum: General CCS C Discussion Posted: Sat Feb 05, 2011 8:14 am Subject: IR Delay |
Hi,
I am using an IR sensor to detect a ball that send IR pulses (rcj-05).
The sensor works perfectly but when the ball leave the IR sight the IR entered to delay and when the ball enter to the IR s ... |
Topic: IR Returned Value |
NivNavick
Replies: 6
Views: 6027
|
Forum: General CCS C Discussion Posted: Thu Feb 03, 2011 3:35 pm Subject: IR Returned Value |
what is your method for calculating the distance? Typically you would use an IR LED to emit a pulse of light, and at that moment timer5 would begin counting. Then once your IR sensor recieves the IR s ... |
Topic: IR Returned Value |
NivNavick
Replies: 6
Views: 6027
|
Forum: General CCS C Discussion Posted: Thu Feb 03, 2011 2:06 pm Subject: IR Returned Value |
hi
I have a function that detect if the IR sensor is detecting an IR that
generate by a ball.
while(input(pin)==0);
set_TIMER5(0);//
while(input(pin)= ... |
Topic: Pic18F46K22 PWM |
NivNavick
Replies: 19
Views: 44131
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2011 12:04 am Subject: Pic18F46K22 PWM |
I talked to CCS support and they told ne that
CCP3 registers aren't correct,
Is there anybody that know how to setup the
CCP3 registers and fix them?
Thanks |
Topic: CCS V4.110 |
NivNavick
Replies: 6
Views: 8677
|
Forum: General CCS C Discussion Posted: Tue Feb 01, 2011 2:41 pm Subject: CCS V4.110 |
So in v4.110 they still has the bug? |
Topic: CCS V4.110 |
NivNavick
Replies: 6
Views: 8677
|
Forum: General CCS C Discussion Posted: Tue Feb 01, 2011 11:58 am Subject: CCS V4.110 |
Take a look here about the timer issue
http://www.ccsinfo.com/forum/viewtopic.php?t=44564
---
Do you know if this problem happens in v4.110? |
Topic: PIC18F |
NivNavick
Replies: 8
Views: 8815
|
Forum: General CCS C Discussion Posted: Tue Feb 01, 2011 11:56 am Subject: PIC18F |
OK. Sounds as if anything with the power control PWM module will do you. Keeping it simple, so you don't have to move into devices with re-mappable pins, something like the 18F4331.
Best Wishes
... |
|