Search found 8 matches

by thegenie
04 Feb 2013, 01:26
Forum: Mindstorms Software
Topic: Bluetooth with NXC
Replies: 3
Views: 6659

Bluetooth with NXC

Remember my artillery project? Those test fires are done, the data points formed a nearly perfect line, and I'm on to programming the robot. The first thing I did was make a the subroutines for the trajectory calculator, move to absolute position, etc. Those all work flawlessly. Next, I tried making...
by thegenie
18 Jan 2013, 02:16
Forum: Mindstorms Software
Topic: NXT capabilities?
Replies: 9
Views: 9722

Re: NXT capabilities?

Well after doing a number of test shots at 4 angles, I can see that that really is the best course of action. There's already a lot of slop, so an array with a table looks like for sure the best plan of action. I may make my own equation by using all the messy data points on the graph as a guide, bu...
by thegenie
17 Jan 2013, 21:10
Forum: Mindstorms Software
Topic: NXC Trig functions aren't working...
Replies: 3
Views: 3948

Re: NXC Trig functions aren't working...

[facepalm]
How did I pass trig?

Thanks! XD
by thegenie
17 Jan 2013, 20:43
Forum: Mindstorms Software
Topic: NXC Trig functions aren't working...
Replies: 3
Views: 3948

NXC Trig functions aren't working...

Well I have nxtcc up an running on a Mac! :D Problem is, the trig functions don't work. Cos(90) should be 0, but my NXT is telling me that it's -0.4481. Also, Sin(45) should be .707, but my NXT is pretty firm about it being 0.8509. Is this just an NXTCC glitch? I know that it's still rough around th...
by thegenie
17 Jan 2013, 19:34
Forum: Mindstorms Software
Topic: NXT capabilities?
Replies: 9
Views: 9722

Re: NXT capabilities?

Oooh how true... :lol:
I'll only need 45 degrees of tests, it can't move any higher.

In this case, should I use an array to store the table? I've never used arrays before, but it seems to be the right method for this situation...
by thegenie
17 Jan 2013, 16:55
Forum: Mindstorms Software
Topic: NXT capabilities?
Replies: 9
Views: 9722

Re: NXT capabilities?

So then it sounds like I should just do a load of test fires at different angles, plug them into my calculator, find the regression equation, then use that in the program? Figure out the math based on a table of tests?
by thegenie
16 Jan 2013, 23:52
Forum: Mindstorms Software
Topic: NXT capabilities?
Replies: 9
Views: 9722

Re: NXT capabilities?

Thanks for the fast replies! I'll install the latest version of Bricxcc and the test release of the FW once I have access to a new computer (our motherboard died). I found this formula for trajectory, it's exactly what I need: http://en.wikipedia.org/wiki/Trajectory_of_a_projectile (scroll down to h...
by thegenie
16 Jan 2013, 18:53
Forum: Mindstorms Software
Topic: NXT capabilities?
Replies: 9
Views: 9722

NXT capabilities?

Hello Mindboards! I've been working on my most ambitious NXT project yet, and I've hit a (possibly very large) snag. But first, let me give some background on said project. An NXT artillery piece. I input a compass heading and distance on an NXT in my hand, the NXT sends that via BT to the turret si...