|
Page 1 of 1
|
[ 5 posts ] |
|
sensorDigitalIn weird values
| Author |
Message |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2862 Location: Rotterdam, The Netherlands
|
 sensorDigitalIn weird values
Hey guys, I am trying to write some code to make the NXTCam work on the VEX Cortex by bit-banging I2C. I can see perfectly fine I2C messages being sent back and forth (using a protocol analyser), only the firmware is not really digging it. This keeps spitting out values between 245 and 246. Is there a reason this would be anything other than 0 or 1, seeing as it's a digital in? SDA has pull-ups that should pull it to +5V when it is set to sensorDigitalIn. I have also tried increasing the wait time, nothing makes a difference. I've tried this with both a HT Colour Sensor V2 and the NXTCam V3, both give me the similar results. I am using ROBOTC 3.13b. - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Jun 29, 2012 3:27 pm |
|
 |
|
JohnWatson
Site Admin
Joined: Thu May 24, 2012 12:15 pm Posts: 386
|
 Re: sensorDigitalIn weird values
Hey Xander, Sorry for the long wait on the response; have you checked your flux capacitor values on the NXTCam?  But in all seriousness, I'm guessing this is probably an issue with the 3.13 build (betas are fun), I'll make sure Tim and some of the more code-savvy members get a look at this and get it taken care of. Thanks for the heads up, and if you come across any other issues please let us know! John
_________________Check out our Blog! And our Facebook page! Need help? Take a look at our Wiki and our Forums.I just met you, And this is crazy, But here's my code now, So fix it, maybe? ~ Carly Rae Jepsen parody
|
| Fri Jul 06, 2012 11:11 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2862 Location: Rotterdam, The Netherlands
|
 Re: sensorDigitalIn weird values
Yes, I even tried switching it off and back on, no dice, I'm still stuck 2012. I'll wait for a new build, I hope Dick recovers from the last compiler bomb I sent him  - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Jul 06, 2012 12:03 pm |
|
 |
|
JohnWatson
Site Admin
Joined: Thu May 24, 2012 12:15 pm Posts: 386
|
 Re: sensorDigitalIn weird values
"Compiler bomb". I like that term so much, I may just steal it from you and start using it in my everyday speech. 
_________________Check out our Blog! And our Facebook page! Need help? Take a look at our Wiki and our Forums.I just met you, And this is crazy, But here's my code now, So fix it, maybe? ~ Carly Rae Jepsen parody
|
| Fri Jul 06, 2012 1:05 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2862 Location: Rotterdam, The Netherlands
|
 Re: sensorDigitalIn weird values
My driver suite is the real reason Dick's hair has been thinning out!
- Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Jul 06, 2012 2:02 pm |
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|