Robotc command list
#Robotc command list full
A zero value stops the motor.Ĭode Example: //Sets the speed value of motor motor port A to full forward (+100)
The encoders have 360 counts per single revolution of the motor. Each motor is equipped with an integrated encoder that can be used to determine the current position of the motor. There are four motor ports on the EV3 labeled A, B, C, and D. Our Function Library (Updated Spring 2013) EV3 - Motor Commands A Non-Functioning EV3 (i.e., frozen or dead).VEX File ManagementFrom the file management utility, you can. Returns a true if there is space available, false if the queue is full.VEX File ManagementThe file management utility allows you to see all of the programs, sound files and other files that are loaded on your VEX. Set bPlaySounds to true to unmute the VEX.The #define shortcuts are also acceptable: MuteSound() UnmuteSound() Sound QueueThe VEX has an internal queue in order to line up sound commands.This queue will automatically process any waiting sound commands, in order that they are received.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.bSoundQueueAvailableA Boolean Variable to check if the sound queue is full. Set bPlaySounds to false to mute the VEX. Returns true if a sound is playing, false if no sound.bPlaySoundsA Boolean variable to mute the VEX. Use the File Management Utility for downloading sound files onto your VEXRobot Advanced Tools File ManagementPlaying SoundsPlaySound(sound) Plays a specific sound effect that is pre-programmed into the VEXsoundBlipsoundBeepBeepsoundDownwardTonessoundUpwardTonessoundLowBuzzsoundFastUpwardTonessoundShortBlipsoundExceptionsoundLowBuzzShortSound VariablesbSoundActiveA Boolean variable informs the user if the VEX is actively playing a sound. Playing Sounds PlayTone(frequency, durationIn10MsecTicks) Example: PlayTone(440, 10) Plays a 440hz note for 100ms.PlaySoundFile(fileName.wav)Will play the sound file fileName.wav. ROBOTC SoundsROBOTC with the VEX has a speaker port available on it for playing basic and polyphonic tones.You can play the follow types of sounds:A specific note PlayTone() A system sound PlaySound() A user loaded sound file (.wav) PlaySoundFile()