Search found 11 matches

by onewinged
11 Dec 2011, 01:27
Forum: Mindstorms Software
Topic: Plz Help; How to use NXT block in NXC ?
Replies: 8
Views: 3916

Re: Plz Help; How to use NXT block in NXC ?

h-g-t wrote:I don't think so, apart from NXT-G, the only way is to use Labview (a free version is available just for this purpose).

http://blog.electricbricks.com/en/2010/ ... g-labview/
I'll use Labview for my project next
thanks for always helping :]
by onewinged
11 Dec 2011, 01:07
Forum: Mindstorms Software
Topic: Plz Help; Call Method(NXC)
Replies: 1
Views: 1077

Plz Help; Call Method(NXC)

Hello,
hope I won't be reported as a spam :")

I just want to know what's the code line for calling and identifying a method||function ?
by onewinged
09 Dec 2011, 16:53
Forum: Mindstorms Software
Topic: Plz Help; How to use NXT block in NXC ?
Replies: 8
Views: 3916

Re: Plz Help; How to use NXT block in NXC ?

is it possible to do the opposite ?
to Make NXC blocks and use them in NXT-G?
by onewinged
09 Dec 2011, 16:23
Forum: Mindstorms Software
Topic: Plz Help; SWITCH PROBLEM (in NXC program idea) ??
Replies: 5
Views: 2112

Re: Plz Help; SWITCH PROBLEM (in NXC program idea) ??

Your code is complicated enough that it makes it hard to say exactly what it going wrong. And I can't test it myself without a lot of work and I don't know exactly what you have in mind for the "correct" behavior. I think it would help you and us if you were to write down in plain old English exact...
by onewinged
08 Dec 2011, 12:23
Forum: Mindstorms Software
Topic: Plz Help; SWITCH PROBLEM (in NXC program idea) ??
Replies: 5
Views: 2112

Plz Help; SWITCH PROBLEM (in NXC program idea) ??

This program takes input from 2 touch sensors; where you have to Click the First touch sensor (1 or 2 times) then the Second touch sensor (1 or 2 times) If the first touch sensor pressed 1 time -->it will move 1 meter If the first touch sensor pressed 2 times --> it will move 2 meters If the Second ...
by onewinged
08 Dec 2011, 11:24
Forum: Mindstorms Software
Topic: Plz Help; How to use NXT block in NXC ?
Replies: 8
Views: 3916

Re: Plz Help; How to use NXT block in NXC ?

It is actually sort of possible to use NXT-G blocks in NXC but probably not in the way that you desire. You can decompile the RXE produced by a simple NXT-G program that uses your desired block and then wrap the resulting NBC assembly language code, with some (perhaps a lot of) manual editing, in a...
by onewinged
05 Dec 2011, 20:29
Forum: Mindstorms Software
Topic: Plz Help; How to use NXT block in NXC ?
Replies: 8
Views: 3916

Plz Help; How to use NXT block in NXC ?

hello, :$
Plz help me again
I made blocks using "NXT 2.0 Programming";
and I want to call them in NXC ? what's the code for it ?and what are some examples ?
by onewinged
04 Dec 2011, 22:29
Forum: Mindstorms Software
Topic: plz Help; How to make a robot follow Distance? (NXC)
Replies: 8
Views: 4681

Re: plz Help; How to make a robot follow Distance? (NXC)

spillerrec wrote:If one full rotation (360°) moves the robot 20 cm forward, the amount of rotations to go the full distance would be 700 cm / 20 cm = 35. So in degrees it would be 35 * 360° = 12600°.
aha! now I get it !
thanks a million ;D
by onewinged
04 Dec 2011, 21:05
Forum: Mindstorms Software
Topic: plz Help; How to make a robot follow Distance? (NXC)
Replies: 8
Views: 4681

Re: plz Help; How to make a robot follow Distance? (NXC)

THANKS A LOT GUYS FOR THE HELP you also may use OnFwd, but as I mentioned, you also have to monitor the encoder: OnFwd(OUT_C, 75); // start motor C by power 75% while (MotorRotationCount(OUT_C)<12600); // wait until target count reached Off(OUT_C); // then switch off motor I guess I'll be following ...
by onewinged
02 Dec 2011, 22:41
Forum: Mindstorms Software
Topic: plz Help; How to make a robot follow Distance? (NXC)
Replies: 8
Views: 4681

Re: plz Help; How to make a robot follow Distance? (NXC)

if you mean "go ahead" by wheels : you may calculate how many rotations you need for each wheel to go 7 meters. for instance, if the wheel circumference is 20 cm, you need 35 rotations with 360° each = 35*360 = 12600 encoder counts so start your engines monitor the rotation counts and if rotation ...