Questions tagged [robotc]

ROBOTC (trademarked as ROBOTC and frequently spelled RobotC) is an Integrated development environment targeted towards students that is used to program and control LEGO NXT, VEX, RCX, and Arduino robots using a programming language based on the C programming language. Not to be confused with "Robotic". Please refrain from using this tag for general robotics questions.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

How can I allow for this code to switch from remote control to autonomous?

//ERROR: Task 'autonomous' is not defined at global scope level ...
user avatar
0 votes
0 answers
16 views

Strange behavior from VEX claw assembly using servo command

I noticed something odd when I tried to loop a claw so it would just open and close (eventually I want to have it just open when the ultrasonic sensor detects something in front of it and close a ...
user avatar
  • 101
0 votes
0 answers
32 views

Using RobotC, trying to find why code seems to loop oddly

I am writing code in RobotC, (natural language PLTW) and what I want is this robot to go forward, then if it "sees" an obstacle, to reverse, turning on an LED (sort of an indicator light) until the ...
user avatar
  • 101
0 votes
0 answers
60 views

What is the correct algorithm name for this "Shortest Path Maze Solver"?

What is the correct algorithm name for this Shortest Path Maze Solver? The algorithm works by completing the maze and at each turn storing each of the turns in an array until the maze once the maze ...
user avatar
  • 101
0 votes
0 answers
72 views

Tetrix Prizm and ROBOTC

I am currently trying to find if its possible to program a Tetrix Prizm motor controller with ROBOTC? Because I have an EV3 brain connected with the Prizm to a robot assembly with two motors, and I ...
user avatar
0 votes
1 answer
743 views

How do I create a broken line follower? [RobotC] [Legomindstorm] [Ev3]

Trying to create an algorithm/code in order to get my robot to follow a track which it currently can do, using a color sensor and following the inside edge. So I'm wondering how to transition to the ...
user avatar
  • 101
0 votes
1 answer
257 views

RobotC startMotor command useless?

I learned recently that robotc has a command called startMotor. it has two parameters, a motor and a speed, and it sets the motor to the speed. But the same thing can be accomplished in one line like ...
user avatar
0 votes
2 answers
288 views

Maths in Robotics [closed]

I'm interested in Robotics but not very skilled in Maths. Since I always come across some very intense looking mathematical formulae in robotic reports, books etc I just wonder what branch of ...
user avatar
  • 155
1 vote
1 answer
518 views

RobotC Code Malfuncion (VEX Robotics Clawbot)

I have a standard VEX Clawbot, which I've been trying to make go straight for some time. I've been following this guide: http://www.education.rec.ri.cmu.edu/products/cortex_video_trainer/lesson/3-...
user avatar
  • 123
1 vote
3 answers
203 views

Robot Veering to the Left

I'm currently programming in RobotC, for a Vex 2.0 Cortex. I'm using encoders to make my robot go straight. This is my code: ...
user avatar
  • 123
2 votes
1 answer
2k views

How can I calculate Center of mass for each link of Robot?

I want to calculate 'r' I know , and the Position of(X, Z) But I don't know how to apply it in this robot.
user avatar
0 votes
1 answer
71 views

Is there any robot stability control equation that describes the relation between velocity of the robot and its orientation?

Let’s assume at time t a moving robot (e.g. PIONEER 3-DX) changes it’s steering angle by $25^{\circ}$. Obviously, in order to maintain stability and avoid overturning, the robot must reduce its ...
user avatar
  • 31
2 votes
2 answers
1k views

Is there an online RobotC IDE?

I'm on a Linux chromebook, and am using a Vex robot, and am wondering if there is an online IDE for RobotC that will run my computer?
user avatar
2 votes
1 answer
87 views

Euler-Lagrange systems, autonomous or nonautonomous?

I was reading an article on Euler-Lagrange systems. It is stated there that since M(q) and C(q,q') depend on q, it is not autonomous. As a result, we cannot use LaSalle's theorem. I have uploaded that ...
user avatar
  • 21
0 votes
1 answer
360 views

VEX Cortex Motor Speeds up under load

I am trying to get my robot to drive straight and am having trouble. I find that when running the motors with no load they run fine. If I put a load on one motor it accelerates. The other performs ...
user avatar
2 votes
0 answers
145 views

Use MATLAB Compiler SDK generated package in KUKA Sunrise.Workbench

The MATLAB Compiler SDK allows to create a wrapper for a MATLAB function which can be accessed by Java software. Based on my understanding, KUKA's Sunrise.Workbench IDE uses most of the standard Java ...
user avatar
  • 61
1 vote
1 answer
338 views

How can I switch between Autonomous mode and usercontrol?

I want to switch from usercontrol to autonomous. When I have the program running for 120 seconds, how come it wont automatically switch in autonomous mode? Thanks! ...
user avatar
  • 11
0 votes
1 answer
272 views

What is the RobotC type for motors?

I'm trying to create a function that allows me to more easily start a motor, but I'm running into a problem, I don't know the type to use for the motorName argument....
user avatar
1 vote
2 answers
2k views

What is the best software/package to draw the robot manipulator and indicate DH parameters and different axes?

I'm wondering about good software/package to draw the robot manipulator and indicate DH parameters and different axes? Any suggestions!
user avatar
  • 221
2 votes
2 answers
161 views

Create Artificial Integelent Robot Ability to communicate with Computer : Which language i should use [closed]

I know some languages like PHP, C/C++ and Java but I'm not expert in these languages. I want to create an Artificial Intelligent Robot that can do these Task; able to communicate with Computer (USB, ...
user avatar
3 votes
1 answer
247 views

Can I use QT to communicate with a Lego NXT robot?

QT has native bluetooth support, but can it be used to communicate with the Lego NXT robot?
user avatar
  • 163
0 votes
3 answers
897 views

Robotc color sensor error

I am trying to write a simple program where the robot(Lego NXT2) will follow a blue line. ...
user avatar
  • 1
0 votes
1 answer
816 views

Matlab for moving a robot towards the detected block

the matlab code is used to detect red colored object, but i want to control a bot to move towards the detected object. just need a simple algorithm or idea, controlling the servo i will be able to do ...
user avatar
3 votes
1 answer
228 views

Performance/memory considerations for pathfinding lookup tables on RobotC for a small set of paths

I'm writing a C code generator geared toward RobotC and complex tasks for an FTC team, and was wondering about some performance and storage concerns: How much memory is available for my program's ...
user avatar
  • 183
2 votes
1 answer
518 views

function of PIDControl #pragma config() directive in robotC

I am trying to sync motors on a VEX Cortex based robot and have had mixed success using the encoders with position control. I noticed that the motor setup directive ...
user avatar
-3 votes
1 answer
306 views

Robotics StackExchange vs ROS Answer [closed]

Robotics Stackexchange vs. ROS Answer: What is better and for what purpose?
user avatar
  • 101
5 votes
1 answer
385 views

Powering down servos completely in RobotC+Tetrix

For a certain robotic application (actually for the FTC challenge this year) our team is performing an operation where a servo-driven arm could potentially be forced into an unknown position. We are ...
user avatar
  • 183
6 votes
2 answers
2k views

Confused about the variables in RobotC?

I'm trying to program advanced functions in RobotC but I'm not too sure I'm doing it right. I want to specify the motor port I'm using, but I assigned names to all the motors. Funny thing though, they ...
user avatar
  • 215
11 votes
2 answers
3k views

Correct way to use Subsumption Architecture with Robot C

I've been doing a lot of reading lately about Subsumption Architecture and there are a few different ways people seem to advocate. For instance some people use a global "flag" variable to have a ...
user avatar
  • 213