VEXcode Pro V5'te Sola ve Sağa Dönecek Proje Oluşturma

The VEX Visual Studio Code Extension has replaced VEXcode Pro V5, which is now end-of-life.

VEXcode Blocks and VEXcode Text remain actively developed and supported for all VEX platforms.

Bu örnek program, V5 Clawbot'un VEXcode Pro Text kullanılarak sola ve sağa dönecek şekilde nasıl programlanacağını gösterir.

Kullanıcıların robotik projelerini geliştirmeleri için çeşitli programlama seçenekleri ve araçlarının sergilendiği VEX V5 robotik eğitim arayüzünün ekran görüntüsü.

Nasıl çalışır

Bu program, robotu belirli bir derece döndürmek için turnFor(degrees, Units) komutunu kullandı. Dereceler sayısal bir değer kullanılarak belirtilebilir.

Birimleri derecekullanarak belirleyebilirsiniz. Robotu sola döndürmek için pozitif bir sayısal değer, sağa taşımak için ise pozitif bir sayı değeri kullanılabilir.

Programda yürütülen adımlar:

  1. Aktarma Organı 90 derece sola dönecek şekilde ayarlanmıştır.
  2. Program bir sonraki kod satırını çalıştırmadan önce 1 saniye bekleyecektir.
  3. Aktarma Organı, robotu ters yönde yani 180 derece sağa döndürecek şekilde ayarlanmıştır.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: