ന്യൂമാറ്റിക്സ്#

ആമുഖം#

pneumatic ക്ലാസ് ഉപയോഗിച്ച് VEX EXP ബ്രെയിനിന് CTE ന്യൂമാറ്റിക് സിസ്റ്റം നിയന്ത്രിക്കാൻ കഴിയും. ന്യൂമാറ്റിക് പമ്പ് നിയന്ത്രിക്കാനും ന്യൂമാറ്റിക് സിലിണ്ടറുകൾ നീട്ടാനോ പിൻവലിക്കാനോ ഈ ക്ലാസ് ബ്രെയിനിനെ അനുവദിക്കുന്നു.

കുറിപ്പ്: CTE ന്യൂമാറ്റിക് കമാൻഡുകൾക്ക് CTE മൊഡ്യൂൾ ആവശ്യമാണ്. നെയിംസ്‌പേസ് cte ഉപയോഗിച്ച് using namespace cte;.

ക്ലാസ് കൺസ്ട്രക്‌ടറുകൾ#

pneumatic( 
  int32_t index );

ക്ലാസ് ഡിസ്ട്രക്റ്റർ#

pneumatic വസ്തുവിനെ നശിപ്പിക്കുകയും അനുബന്ധ വിഭവങ്ങൾ പുറത്തുവിടുകയും ചെയ്യുന്നു.

~pneumatic();

പാരാമീറ്ററുകൾ#

പാരാമീറ്റർ

ടൈപ്പ് ചെയ്യുക

വിവരണം

index

int32_t

CTE ന്യൂമാറ്റിക് സോളിനോയിഡ് ബന്ധിപ്പിച്ചിരിക്കുന്ന സ്മാർട്ട് പോർട്ട് (ഉദാ. PORT1).

കുറിപ്പുകൾ#

  • CTE ന്യൂമാറ്റിക് കമാൻഡുകൾ CTE ന്യൂമാറ്റിക് ഭാഗങ്ങളുമായി മാത്രമേ പ്രവർത്തിക്കൂ.

  • You must manually import the CTE module: using namespace cte;.

  • ഈ സിസ്റ്റത്തിന് ഒറ്റയ്ക്കോ എല്ലാം കൂടിയോ 4 സിലിണ്ടറുകൾ വരെ നിയന്ത്രിക്കാൻ കഴിയും.

ഉദാഹരണം#

using namespace cte;

// Create a CTE Pneumatic Solenoid in Port 1
pneumatic ctePneumatic1 = pneumatic(PORT1);

// Turn on the pump and extend cylinder 1
ctePneumatic1.pump_on();
ctePneumatic1.extend(cylinder1);

അംഗ പ്രവർത്തനങ്ങൾ#

extend#

ഒരു ന്യൂമാറ്റിക് സിലിണ്ടർ നീട്ടുന്നു.

Available Functions
void extend( 
  cylinderType id );

Parameters

പാരാമീറ്റർ

ടൈപ്പ് ചെയ്യുക

വിവരണം

id

cylinderType

നീട്ടേണ്ട സിലിണ്ടർ:

  • cylinder1
  • cylinder2
  • cylinder3
  • cylinder4
  • cylinderAll - എല്ലാം 4 സിലിണ്ടറുകൾ

Return Values

ഈ ഫംഗ്ഷൻ ഒരു മൂല്യം തിരികെ നൽകുന്നില്ല.

Examples
// Extend cylinder 1
ctePneumatic1.extend(cylinder1);

// Extend all cylinders
ctePneumatic1.extend(cylinderAll);

retract#

ഒരു ന്യൂമാറ്റിക് സിലിണ്ടർ പിൻവലിക്കുന്നു.

Available Functions
void retract( 
  cylinderType id );

Parameters

പാരാമീറ്റർ

ടൈപ്പ് ചെയ്യുക

വിവരണം

id

cylinderType

പിൻവലിക്കേണ്ട സിലിണ്ടർ:

  • cylinder1
  • cylinder2
  • cylinder3
  • cylinder4
  • cylinderAll - എല്ലാ 4 സിലിണ്ടറുകളും

Return Values

ഈ ഫംഗ്ഷൻ ഒരു മൂല്യം തിരികെ നൽകുന്നില്ല.

Examples
// Retract cylinder 2
ctePneumatic1.retract(cylinder2);

// Retract all cylinders
ctePneumatic1.retract(cylinderAll);

pump_on#

ന്യൂമാറ്റിക് പമ്പ് ഓണാക്കുന്നു.

Available Functions
void pump_on();

Parameters

ഈ ഫംഗ്ഷന് പാരാമീറ്ററുകൾ ഇല്ല.

Return Values

ഈ ഫംഗ്ഷൻ ഒരു മൂല്യം തിരികെ നൽകുന്നില്ല.

Examples
// Turn the pneumatic pump on
ctePneumatic1.pump_on();

pump_off#

ന്യൂമാറ്റിക് പമ്പ് ഓഫ് ചെയ്യുന്നു.

Available Functions
void pump_off();

Parameters

ഈ ഫംഗ്ഷന് പാരാമീറ്ററുകൾ ഇല്ല.

Return Values

ഈ ഫംഗ്ഷൻ ഒരു മൂല്യം തിരികെ നൽകുന്നില്ല.

Examples
// Turn the pneumatic pump off
ctePneumatic1.pump_off();

pump#

ന്യൂമാറ്റിക് പമ്പ് ഓൺ അല്ലെങ്കിൽ ഓഫ് ചെയ്യുന്നു.

Available Functions
void pump( 
  bool state );

Parameters

പാരാമീറ്റർ

ടൈപ്പ് ചെയ്യുക

വിവരണം

state

bool

സജ്ജമാക്കേണ്ട അവസ്ഥ: true ന്യൂമാറ്റിക് പമ്പ് ഓണാക്കുന്നു. false ന്യൂമാറ്റിക് പമ്പ് ഓഫാക്കുന്നു.

Return Values

ഈ ഫംഗ്ഷൻ ഒരു മൂല്യം തിരികെ നൽകുന്നില്ല.

Examples
// Turn the pump on
ctePneumatic1.pump(true);

// Turn the pump off
ctePneumatic1.pump(false);

installed#

CTE ന്യൂമാറ്റിക് സോളിനോയിഡ് തലച്ചോറുമായി ബന്ധിപ്പിച്ചിട്ടുണ്ടോ എന്ന് നൽകുന്നു.

Available Functions
bool installed();

Parameters

ഈ ഫംഗ്ഷന് പാരാമീറ്ററുകൾ ഇല്ല.

Return Values

സോളിനോയിഡ് തലച്ചോറുമായി ബന്ധിപ്പിച്ചിട്ടുണ്ടോ ഇല്ലയോ എന്ന് സൂചിപ്പിക്കുന്ന ഒരു ബൂളിയൻ നൽകുന്നു.

  • സോളിനോയിഡ് തലച്ചോറുമായി ബന്ധിപ്പിച്ചിട്ടുണ്ടെങ്കിൽ true.

  • സോളിനോയിഡ് തലച്ചോറുമായി ബന്ധിപ്പിച്ചിട്ടില്ലെങ്കിൽ false.

Examples
// Check if the pneumatic solenoid is connected
if (ctePneumatic1.installed()) {
  // Pneumatic system is ready
  ctePneumatic1.pump_on();
}