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.

From Wikipedia:

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.

31 questions
6
votes
2 answers

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 don't exactly work the same as regular…
Genevieve
  • 215
  • 1
  • 5
2
votes
1 answer

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 #pragma config(Motor, port2, motorA, tmotorVex393, PIDControl, encoder,…
Commodore63
  • 191
  • 6
0
votes
0 answers

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 obstacle is far enough away and then pick a random…
Jesse
  • 103
  • 4
0
votes
2 answers

Maths in Robotics

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 Mathematics I should be learning to better understand the…
sisko
  • 155
  • 6
0
votes
0 answers

RobotC forwards command using wrong motors

I'm trying to run this simple program just to make my robot move forwards for 1 second using the forward command, figuring it would use ports 1 and 10 (main drive motors) because they are labeled as left and right drive. But when the command is ran…
Matthew
  • 1
  • 1