Hi everyone( the force vector parallel to the position vector r ) = Force vector* (r vector / r)
I don't know how did they find this relation ?
it seems to me they multiplied F hat by the unit vector ?
why ??
I am just confused about it
any idea ??
I do not know how I can remove the read line under the power A and bclc
clear
handle = COM_OpenNXT();
COM_SetDefaultNXT(handle);
OpenSwitch(SENSOR_1);
x = 1;
power=50;
foreverLoop= 1;
loop = 1;
Kp = 1000;
offset = 45;
Tp = 25;
error = 0;
powerA = 0;
powerB = 0;
degrees=360;
powerA = Tp + Turn...
I am supposed to program the Lego to follow the line smoothly
here are some information ..
--------------------------------PURPOSE: To utilize the LEGO NXT block as an interface to gather input from feedback mechanisms (touch sensor, light sensor, ultrasonic sensor, etc.), make sound, display a...
Hi
Controlling the LEGO NXT Using MatLab
What are my mistakes in this code ??!
COM_CloseNXT
all
clc
clear
handle = COM_OpenNXT();
COM_SetDefaultNXT(handle);
COM_CloseNXT(handle);
NXT_GetBatteryLevel(handle);
COM_CloseNXT(handle);
COM_CloseNXT
all
clc
clear...