User Tools

Site Tools


new_podo_al

Differences

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

Link to this comparison view

new_podo_al [2018/09/14 14:31]
yuhanghe created
new_podo_al [2018/09/14 14:44] (current)
yuhanghe
Line 42: Line 42:
   *Right click on PODOGUI project -> Add new -> QT -> Click Qt Designer Form Class.   *Right click on PODOGUI project -> Add new -> QT -> Click Qt Designer Form Class.
 {{ :​yuhang:​hubo2:​800px-screenshot_from_2018-06-29_13-39-20.png |}} {{ :​yuhang:​hubo2:​800px-screenshot_from_2018-06-29_13-39-20.png |}}
 +  *Choose a Form Template -> Dialog without Buttons. Set the class name to be related to the AL to be created.
 +{{ :​yuhang:​hubo2:​screenshot_from_2018-06-29_13-42-06.png |}}
 +  *Create one test button by dragging the Push Button on the left panel onto GUI.
 +{{ :​yuhang:​hubo2:​screenshot_from_2018-06-29_13-43-08.png |}}
 +  *Change text on the button by double clicking.
 +  *Right click on button -> go to slot -> clicked().
 +{{ :​yuhang:​hubo2:​screenshot_from_2018-06-29_13-43-47.png |}}
 +  *This will create a function that is called every time the button is pressed.
 +  *Add header files at the top of GUI dialog.cpp file
 +
 +  *''#​include "​CommonHeader.h"''​
 +  *''#​include "​BasicFiles/​PODOALDialog.h"''​
 +
 +  *Editing the GUI dialog.h file. Found under project PODOGUI/​Headers.
 +
 +  *''#​include "​CommonHeader.h"''​
 +
 +  *Declaring private objects in the GUI dialog.h file, basic variables for communicating with Al
 +
 +  *''​private:''​
 +  *''​LANDialog * lanData; ////​Communication with Daemon''​\\
 +  *''​int AlnumXXXX; //// Choose the name of AL you want to use or create''​\\
 +  *''​int AlnumOmniWheel;​ //For example''​
 +  *''​int AlnumWalkReady;​ //or this''​
  
 ===== Create New AL ===== ===== Create New AL =====
new_podo_al.txt ยท Last modified: 2018/09/14 14:44 by yuhanghe