Tag: programming

RobotC Tasks: The Basics

RobotC tasks are a powerful tool that allow you to write code that can run simultaneously (sort of faux-multitasking, since the cortex cannot actually do two things at once). This is pretty high on the list of why we switched to RobotC from easyC; if your robot can handle several movement instructions at once, you can do a lot more, for example, in those 15 seconds of autonomous.

Share this post:

Ternary ? Operator : RobotC

The ternary statement in RobotC is a way of writing an if-else statement all in one line, comprised of a (condition check), (what to do if true), and (what to do if false). Read on for some samples and explanation. While no one *needs* to write code this way, *everyone* should be able to read it to take advantage of code snippets available online.

Share this post:

New Programming Concepts for Us

Here are a few new (to us) programming concepts, courtesy of George Gillard. Read on for breaking in auton, slowing down as you approach a target, and an elegant button coding scheme.

Share this post:

RobotC: Free online class over winter break!

Sign up for a free online class during 2017 December school vacation. Read this post for complete details about what is covered and how to enroll. Geared toward the newbie.

Share this post:

Set Motor Power Just Once

Here’s a simple programming concept that was new for me this year, which grew out of moving to RobotC. However, this method can be used in (and recommended for) any language; examples are given here for RobotC and easyC.

Share this post:

RobotC: Programming a Chassis (and easyC too!)

This post is part of my journey from easyC to RobotC. I will post things here as I learn them, that might be helpful to others who are also new to this language. This week, I learned how to program a joystick to drive a chassis. Unlike easyC, the standard text-based RobotC does not have […]

Share this post:

Wireless Downloading with RobotC

There’s a lot of things I like about RobotC so far, and perhaps the most time-saving item is wireless downloading. In order to make use of this feature, you need to purchase the VEX wireless downloading cable, officially known as the “Programming Hardware Kit.” Cost: $50; I got mine on eBay for about half that […]

Share this post:

Using JPearman’s Smart Motor Library

The Smart Motor Library does nifty things for RobotC programmers to help prevent motor overload (motor stall). This post is a break-down of all of its functionality, plus a how-to guide on including it in your competition programming.

Share this post:

Mapping Joystick Values – Totally Blew My Mind

In doing my research on motors and motor controllers, and following various threads in the VEX Forum, I came across one that totally blew my mind—mapping joystick movements to custom motor power levels to achieve a linear, one-to-one connection between the joystick’s motion your robot’s actual movement, eliminating dead zones, and making full use of […]

Share this post:

What is slew rate? A good thing to know.

Slew rate refers to a programming method to slowly increase the power to a VEX motor, in measured steps over a set period of time, to reduce the possibility of current spikes which can trip the motor’s internal circuit breaker.

Share this post:

© 2018 Renegade Robotics

Theme by Anders NorenUp ↑