
- How to use robotc how to#
- How to use robotc install#
- How to use robotc driver#
If you’re new to the driver suite or you just want to learn more about, I can really recommend you take a look at it.
How to use robotc how to#
I’ve included a couple of fun example programs, with instructions on how to create those from scratch. In the tutorial you’ll learn how to setup your ROBOTC environment and configure your sensors correctly.
How to use robotc install#
You can download a detailed tutorial on how to install and use these drivers right here. Updated installation instructions can be found in the section above. Please note that the tutorial is a little out of date as it applies to Driver Suite 2.x.
Follow the installation instructions here. Make sure you are using ROBOTC 3.60 or higher. Download the latest release here: and unzip in a directory of your choice. The current version of the driver suite is 3.3 (Released 12 March 2013) Installation instructions A lot of time has gone into documenting each driver and providing examples for each driver to show how to use it. The idea is that it should be clear from the name what a function does. Great care has been taken to ensure the API for the various drivers is consistent and easy to understand. It slowly grew from just a couple of drivers to an entire suite, supporting over 50 different sensors and devices that can be connected to the NXT. Returns a “true” if there is space available, “false” if the queue is full.Ħ VEX File Management The file management utility allows you to see all of the programs, sound files and other files that are loaded on your VEX.ħ VEX File Management From the file management utility, you can.The ROBOTC Driver Suite was started back in 2008 when I wrote my first ROBOTC driver for the HiTechnic IR Link. bSoundQueueAvailable A Boolean Variable to check if the sound queue is full. You can override/check on the queue with the following commands: PlayImmediateTone(frequency, durationIn10MsecTicks) This command will force the “playTone” command to jump ahead of the queue. This queue will automatically process any waiting sound commands, in order that they are received. The #define shortcuts are also acceptable: MuteSound() UnmuteSound() ĥ Sound Queue The VEX has an internal queue in order to line up sound commands. Set bPlaySounds to “true” to unmute the VEX. Set bPlaySounds to “false” to mute the VEX. bPlaySounds A Boolean variable to “mute” the VEX. Returns “true” if a sound is playing, “false” if no sound. Plays a specific sound effect that is pre-programmed into the VEX soundBlip soundBeepBeep soundDownwardTones soundUpwardTones soundLowBuzz soundFastUpwardTones soundShortBlip soundException soundLowBuzzShortĤ Sound Variables bSoundActive bPlaySoundsĪ Boolean variable informs the user if the VEX is actively playing a sound. Use the “File Management” Utility for downloading sound files onto your VEX Robot – Advanced Tools – File Management
PlaySoundFile(“fileName.wav”) Will play the sound file “fileName.wav”. You can play the follow types of sounds: A specific note – PlayTone() A system sound – PlaySound() A user loaded sound file (.wav) – PlaySoundFile() Ģ Playing Sounds PlayTone(frequency, durationIn10MsecTicks) Įxample: PlayTone(440, 10) Plays a 440hz note for 100ms. 1 ROBOTC Sounds ROBOTC with the VEX has a speaker port available on it for playing basic and polyphonic tones.