Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

Cette page présente les différents types de données déclarés dans CrcLib.

View the english version of this page.

Analog

Analog

An enum class representing the available analog channels on the remote controller connected via a CrcConnect module. These are different from the 4 Analog inputs (pins) of your board.

The members of the enum, listed below, are to be used in tandem with the Une classe enum représentant les canaux analogues disponibles sur la télécommande connectée via un module CrcConnect. Ceux-ci sont différents des 4 entrées analogues (broches) sur votre carte électronique.

Les membres de cette enum, énumérés ci-dessous, sont là pour être utilisés en tandem avec les méthodes GetAnalogChannel(), MoveTank()MoveArcade() or ou MoveHolomonic()function.

Members

Membres:

  • JOYSTICK1_X : The horizontal axis of the left stickL’axe horizontal du stick gauche.

  • JOYSTICK1_Y : The vertical axis of the left stickL’axe vertical du stick gauche.

  • JOYSTICK2_X : The horizontal axis of the right stickL’axe horizontal du stick droit.

  • JOYSTICK2_Y : The vertical axis of the right stick.

  • NONE : No value. This should not be used and exists mainly for implementation details.

Click here for more details on the joystick mapping, depending on the remote controller used.

InfoIn C/C++, a call to a member of an enum class must be preceded by the name of the enum, followed by ::. For example, the following syntax must be used in a function call
  • L’axe vertical du stick droit.

  • GACHETTE_L : The bouton à pression en arrière de la télécommande, côté gauche.

  • GACHETTE_R : The bouton à pression en arrière de la télécommande, côté droit.

  • NONE : Aucune valeur. Ceci ne devrait pas être utilisé et n’existe que pour des détails d’implémentation.

Cliquez ici pour plus de détails sur la cartographie des manettes selon la télécommande utilisée.

Info

En C/C++, un appel à un membre d’une classe enum doit être précédé par le nom de l’enum, suivi d’un ::. Par exemple, la syntaxe suivante doit être utilisée dans l’appel d’une méthode:

CrcLib::GetAnalogChannel(Analog::JOYSTICK1_X);

Button

Button

An enum class representing the available digital channels on the remote controller connected via a CrcConnect module. These are different from the 12 Digital inputs (pins) of your board.

The members of the enum, listed below, are to be used in tandem with the GetDigitalChannel() function.

Members

Une classe enum représentant les canaux discrets disponibles sur la télécommande connectée via un module CrcConnect. Ceux-ci sont différents des 12 entrées discrètes (broches) sur votre carte électronique.

Les membres de cette enum, énumérés ci-dessous, sont là pour être utilisés en tandem avec la méthode GetDigitalChannel().

Membres:

  • ARROW_RIGHT

  • ARROW_UP

  • ARROW_LEFT

  • ARROW_DOWN

  • COLORS_RIGHT

  • COLORS_UP

  • COLORS_LEFT

  • COLORS_DOWN

  • SELECT

  • START

  • L1

  • R1

  • HATL

  • HATR

  • LOGO

  • NONE : No value. This should not be used and exists mainly for implementation details.

Click here for more details on the joystick mapping, depending on the remote controller used
  • Aucune valeur. Ceci ne devrait pas être utilisé et n’existe que pour des détails d’implémentation.

Cliquez ici pour plus de détails sur la cartographie des boutons selon la télécommande utilisée.

Info

In En C/C++, a call to a member of an enum class must be preceded by the name of the enum, followed by ::. For example, the following syntax must be used in a function callun appel à un membre d’une classe enum doit être précédé par le nom de l’enum, suivi d’un ::. Par exemple, la syntaxe suivante doit être utilisée dans l’appel d’une méthode:

CrcLib::GetDigitalChannelReadDigitalChannel(Button::L1);

Articles liés

Filter by label (Content by label)
sorttitle
excerptTyperich content
cqllabel in ( "ar-crcconnect_fr" , "ar-crclib_fr" )