When I run the programs, the bricks connect, the Master sends the message to the Slave, the "SentMessage" variable on the Slave turns to "1", but it doesn't send the Master the reply . It seems to me like it should work, but then again this is the first time I'm using BlueTooth .

This probably isn't the best way to do it, and I'm VERY open to suggestions .

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

I've spent two days doing nothing and the answer was right in front of me!!!!! AAAAAAAAAAAAAAAAAAAA!!!!!!!!!

Please exscuse the tyraniccal rant. I just have a tight deadline for this project, and can't afford this kind of delay . Now back to your regularly scheduled programming.

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

Tue Feb 21, 2012 12:56 am

magicode

Moderator

Joined: Tue Sep 14, 2010 9:19 pmPosts: 496

Re: BlueTooth Woes (RobotC Edition!)

If you've figured out the solution to your problem, then perhaps you could post it here? That way, others with similar problems wont have to "spend two days doing nothing".

Yup, fess up your sins! If not for helping others, at least allow us to be entertained! Perhaps then I will tell you the story of how I wasted a weekend figuring out why I thought my compass module was broken, when it clearly wasn't.

Talking about entertained, I can share a story. This story is about our FRC robot, not FTC but entertaining nevertheless. Our FRC student couldn't get the servo to work, so he asked me to help him figure out what's wrong. I tried hooking up to a second servo, replacing the servo wire, even scope the sevo wire and saw nothing, and ten million other things and half hour later, couldn't understand why nothing works. Then I asked the student to try moving another motor. It didn't work either. In fact, nothing on the robot works. Then it dawned on him that since we were working on two robots: one for competition, one for testing software and he was working on the test bot before got dragged to test the servo on the competition robot that he forgot his laptop was still connected to the test bot. So we were commanding the test bot upstair through wireless the whole time while we were trying to debug the competition robot. Luckily the test bot upstair was sitting on two 2x4 off the ground or it might be running wild without us noticing.

Yup, fess up your sins! If not for helping others, at least allow us to be entertained! Perhaps then I will tell you the story of how I wasted a weekend figuring out why I thought my compass module was broken, when it clearly wasn't.

- Xander

Not funny enough for ya? Okay then, here's something: When I figured it out, I couldn't decide whether I wanted to woop with joy, or kick myself! Then it just seemed so obvious!!

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

I spent 2 days trying to figure out why my dCompass wasn't working properly. I kept getting very weird readings that made no sense at all. First I thought it was my maths but that checked out. Then I tried NXT-G and NXC, with various firmwares, still the weird errors. I thought that I had broken my sensor during one of the many times I transport my stuff from one NXT demo to another. The code worked fine when John from Dexter Industries tested it so we both thought that the sensor was broken. So after a little conversation with Aswin, who also tested the code, etc, etc, I showed him a picture of my setup:

Attachment:

IMAG0308.jpg [ 56.53 KiB | Viewed 2769 times ]

He said "Oh no wonder, it's too close to the brick." So I took it off my little frame, placed it about 10 cms from the brick and it all worked like a charm.

Turns out magnetic compasses are sensitive to magnetic fields. Who would've thought?

I spent 2 days trying to figure out why my dCompass wasn't working properly. I kept getting very weird readings that made no sense at all. First I thought it was my maths but that checked out. Then I tried NXT-G and NXC, with various firmwares, still the weird errors. I thought that I had broken my sensor during one of the many times I transport my stuff from one NXT demo to another. The code worked fine when John from Dexter Industries tested it so we both thought that the sensor was broken. So after a little conversation with Aswin, who also tested the code, etc, etc, I showed him a picture of my setup:

Attachment:

IMAG0308.jpg

He said "Oh no wonder, it's too close to the brick." So I took it off my little frame, placed it about 10 cms from the brick and it all worked like a charm.

Turns out magnetic compasses are sensitive to magnetic fields. Who would've thought?

- Xander

I would have thought!!! Eventually. It would probably end up being the same as this problem. Agonizing over it, and then have an "eureka!" moment where you figure it out, but feel you should have seen it much sooner. That's actually how quite a few of my problems have been solved.

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

Last edited by NeXT-Generation on Tue Feb 21, 2012 5:52 pm, edited 1 time in total.

Tue Feb 21, 2012 1:51 pm

magicode

Moderator

Joined: Tue Sep 14, 2010 9:19 pmPosts: 496

Re: BlueTooth Woes (RobotC Edition!)

One of the programmers on my team spent hours upon hours trying to get ROBOTC to install and run. She had been working with ROBOTC for two years, so we were all confidant in her ability to get it up and running. When it just wouldn't happen, She finally showed it to the rest of the team, hoping that someone could fix it. After about 5 seconds, we all looked at her like -_- Turns out that she was trying to execute the .exe file in Ubuntu.

_________________sudo rm -rf /

Tue Feb 21, 2012 5:43 pm

aaaaeroauto

Rookie

Joined: Sat Jan 31, 2015 2:15 pmPosts: 1Location: Dallas, T exas

Re: BlueTooth Woes (RobotC Edition!)

NeXT-Generation wrote:

mightor wrote:

I spent 2 days trying to figure out why my dCompass wasn't working properly. I kept getting very weird readings that made no sense at all. First I thought it was my maths but that checked out. Then I tried NXT-G and NXC, with various firmwares, still the weird errors. I thought that I had broken my sensor during one of the many times I transport my stuff from one NXT demo to another. The code worked fine when John from Dexter Industries tested it so we both thought that the sensor was broken. So after a little conversation with Aswin, who also tested the code, etc, etc, I showed him a picture of my setup:

Attachment:

IMAG0308.jpg

He said "Oh no wonder, it's too close to the brick." So I took it off my little frame, placed it about 10 cms from the brick and it all worked like a charm.

Turns out magnetic compasses are sensitive to magnetic fields. Who would've thought?

- Xander

I would have thought!!! Eventually. It would probably end up being the same as this problem. Agonizing over it, and then have an "eureka!" moment where you figure it out, but feel you should have seen it much sooner. That's actually how quite a few of my problems have been solved.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum