Search found 4 matches

by mindcharlie1
09 Aug 2011, 03:24
Forum: Mindstorms Software
Topic: How to hold the position of a motor (NXC)?
Replies: 3
Views: 3795

How to hold the position of a motor (NXC)?

how to hold the position of a motor by using NXC? like, if i want to make a robot arm, and use it to hold an object. if i use the command "Off(OUT_A)", the position of the motor can be held, but the force is not strong enough. if I use the command "OnFwd(OUT_A, 100)", the motor w...
by mindcharlie1
20 Mar 2011, 23:15
Forum: Mindstorms Software
Topic: Problem with LCD & multitasking with NXC
Replies: 6
Views: 7654

Re: Problem with LCD & multitasking with NXC

Thanks very much for your help. And the first question is actually as below: If I have two “Precedes()” commands used in the program, will the program execute as I want? Case1: task 1() {*****} task 2() {*****} task 3() {*****} task main { for(i=0;i<20;i++) {precedes(1,2);} for(j=0;j<20;j++) {pr...
by mindcharlie1
19 Mar 2011, 12:33
Forum: Mindstorms Software
Topic: Problem with LCD & multitasking with NXC
Replies: 6
Views: 7654

Problem with LCD & multitasking with NXC

I got problems as below, hope someone could help me, I really appreciate your time. (1)If I have two “Precedes()” commands used in the program, will the program execute as I want? (2)With command below, the “5” will not be display on the screen, only “1234” will be displayed. One charact...
by mindcharlie1
19 Mar 2011, 12:25
Forum: Mindstorms Software
Topic: Compass: Motor Control Problem with NXC
Replies: 0
Views: 2571

Compass: Motor Control Problem with NXC

I got problems as below, hope someone could help me, I really appreciate your time. NXC Motor Control Problem, I have only put the main part of the program with problems: #define compass IN_2 #define pointer OUT_A ResetRotationCount(pointer); heading1=SensorHTCompass(compass); RotateMotor(pointer, 6...