User Tools

Site Tools


lego_nxt_teleoperation_introduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lego_nxt_teleoperation_introduction [2024/08/05 13:13] – Photos hhameedlego_nxt_teleoperation_introduction [2024/08/15 23:30] (current) – Build Instruction Links hhameed
Line 41: Line 41:
 **Step 3** **Step 3**
  
-Download the required NXC library and sample/demo on the controller product page listed above or here. It is highly recommended that you compile and run the included sample to understand how to interface with the library. +Download the required NXC library and sample/demo on the controller product page listed above or [[http://www.mindsensors.com/index.php?controller=attachment&id_attachment=39|here]]. It is highly recommended that you compile and run the included sample to understand how to interface with the library.
  
  
Line 52: Line 52:
 The following is an example of moving a motor connected to port A based (pictured above) on the input of the PS2 controller’s left stick: The following is an example of moving a motor connected to port A based (pictured above) on the input of the PS2 controller’s left stick:
  
-<code c basic_movement.nxc>+[[http://www.mindsensors.com/index.php?controller=attachment&id_attachment=39 | Library Download]] 
 + 
 +<code c [enable_line_numbers="true"basic_movement.nxc>
 //imports the library //imports the library
 #include "PSP-Nx-v4-lib.nxc" #include "PSP-Nx-v4-lib.nxc"
Line 92: Line 94:
 The following are examples of functions to use in your main loop for teleoperation (assuming motors connected to ports B and C [pictured above]): The following are examples of functions to use in your main loop for teleoperation (assuming motors connected to ports B and C [pictured above]):
  
-<code c drive_functions.nxc>+<code c [enable_line_numbers="true"drive_functions.nxc>
 //Pass in the current state of a given joystick axis to the respective field(s) //Pass in the current state of a given joystick axis to the respective field(s)
 void tankDrive(int rightStickY, int leftStickY){ void tankDrive(int rightStickY, int leftStickY){
Line 110: Line 112:
 The following are example functions that may be used and adjusted based on peripheral construction and purpose: The following are example functions that may be used and adjusted based on peripheral construction and purpose:
  
-<code c peripheral_functions.nxc>+<code c [enable_line_numbers="true"peripheral_functions.nxc>
 //Rotates a motor forward and backward using the square button //Rotates a motor forward and backward using the square button
 //Can be used in mechanisms such as a gripper/claw and projectile “kicker” //Can be used in mechanisms such as a gripper/claw and projectile “kicker”
Line 154: Line 156:
 } }
 </code> </code>
 +
 +**<fs x-large>Additional Build Instructions</fs>** 
 +
 +The following are links to various mobile robot builds and mechanisms to be customized for your teleoperational purposes:
 +
 +[[https://www.lego.com/cdn/product-assets/product.bi.core.pdf/4556207.pdf|Castor Bot & Kick Mechanism]]
 +\\
 +[[https://www.nxtprograms.com/game_control_car/steps.html|Elevated Castor Robot]]
 +\\
 +[[https://www.nxtprograms.com/claw_car/steps.html|Claw Mechanism]]
 +\\
 +{{ :band-powered.pdf |"Band-Powered"}}
 +\\
 +{{ :coralle_and_kick.pdf |Corrale & Kick}}
 +
  
 <fs x-large>**Final Words**</fs> <fs x-large>**Final Words**</fs>
lego_nxt_teleoperation_introduction.1722888830.txt.gz · Last modified: by hhameed