Search found 16 matches

by walduss
16 Jun 2012, 22:09
Forum: Mindstorms Software
Topic: Rotation Sensor Counters in NXC
Replies: 2
Views: 3885

Re: Rotation Sensor Counters in NXC

doc-helmut wrote:RotationCount is fine,
the rest is used internally by advanced motor control functions which I personally don't use.
Thanks, by the time been I will use RotationCount in my initial test.
by walduss
16 Jun 2012, 11:08
Forum: Mindstorms Software
Topic: Rotation Sensor Counters in NXC
Replies: 2
Views: 3885

Rotation Sensor Counters in NXC

Hi, In NXT-G there is a Rotation Sensor Block that contain a Rotation Counter that can be Reset by the user. I am trying to do the same in NXC but I have some doubts. reading API documentation I have found that OnFwdEx() could reset the counter. But I am surprised because It seems that there are mor...
by walduss
16 Jun 2012, 10:25
Forum: Mindstorms Software
Topic: I am confusing "OnFwdReg"
Replies: 8
Views: 10212

Re: I am confusing "OnFwdReg"

mattallen37 wrote:If I were you, I would use OnFwd and/or OnRev.
doc-helmut wrote:yes, matt wrote what I actually intended to say.
Ok, I understand. In fact actually I am using OnFwd and OnRev instead.

Anyway, as I have comment before, after some test I have detected that issue was related to Sign fuction.

Thanks.
by walduss
15 Jun 2012, 22:52
Forum: Mindstorms Software
Topic: I am confusing "OnFwdReg"
Replies: 8
Views: 10212

Re: I am confusing "OnFwdReg"

I agree, OnFwdReg is weird and often produces unexpected behaviours - (to be honest: just like all of the advanced motor functions ...) I personally sacrificed all of them. Better you write your own functions! Sorry, I dont understand what you mean with create your own functions? You mean create in...
by walduss
15 Jun 2012, 10:25
Forum: Mindstorms Software
Topic: I am confusing "OnFwdReg"
Replies: 8
Views: 10212

Re: I am confusing "OnFwdReg"

After some test I have discover hat the issue is due to "sign" function. When NXT run "-sign(dir)" where "dir" is ACW the program get an unexpected behaviour (at least for me) So I have remove sign function (really, it was not necessary) #define SPIN_SPEED 50 // NXT Por...
by walduss
15 Jun 2012, 09:38
Forum: Mindstorms Software
Topic: I am confusing "OnFwdReg"
Replies: 8
Views: 10212

Re: I am confusing "OnFwdReg"

Hi again, I have done another test after restart the brick and the computer. #define SPIN_SPEED 50 // NXT Port aliases #define WHEELS OUT_BC #define LEFT_WHEEL OUT_B #define RIGHT_WHEEL OUT_C #define CW 1 // clockwise #define ACW -1 // anticlockwise void Spin(short dir) { // Rotot turn to "dir&...
by walduss
14 Jun 2012, 22:03
Forum: Mindstorms Software
Topic: I am confusing "OnFwdReg"
Replies: 8
Views: 10212

I am confusing "OnFwdReg"

Hi I am starting with NXC. I have a code but I am confusing, so I have reduced my code to minimun. I will show .. #define SPIN_SPEED 50 // NXT Port aliases #define WHEELS OUT_BC #define LEFT_WHEEL OUT_B #define RIGHT_WHEEL OUT_C #define CW 1 // clockwise #define ACW -1 // anticlockwise void Spin(sho...
by walduss
25 May 2012, 16:44
Forum: Mindstorms Software
Topic: [poll] What language do you use?
Replies: 6
Views: 9792

Re: [poll] What language do you use?

I have just get my Lego kit .... By the time been NXT-G

I want to know NXT-G before change to a different language
by walduss
24 May 2012, 16:15
Forum: Mindstorms Software
Topic: issues with nxt-g ide
Replies: 6
Views: 7036

Re: issues with nxt-g ide

http://www.teamhassenplug.org/NXT/NXTGTips/ If you click on a block's drawer INPUT that has a wire connected to it, the wire will be deleted. Using the mouse, you can create a box around a wire or a beam (that gets left after pasting blocks). That will select the wire/beam. Then, you can just hit d...
by walduss
23 May 2012, 20:41
Forum: Mindstorms Software
Topic: issues with nxt-g ide
Replies: 6
Views: 7036

Re: issues with nxt-g ide

Thanks for your comments.. NXT-G is really buggy, so expect errors. 1. To delete a wire, simply select it, and press the "delete" button on your keyboard. 2. This is probably caused by having a wire go into a block, but without plugging into a output. I'm not sure what to do about that. Th...