The following pages explain how to do different things that are required to know about the project:
- ______________________________________________________________________________________________________________________________________________________________
- Demoing the 2013 ProjectStarting the Camera System:
To start up the camera system, log into the camera system computer (co3050-07) with user name .\microcart with the normal password for these computers. Once the OS is done loading start up the program Tracking Tool and open the project named TrackingToolsProject 2013-06-03 10.27am to start up the camera system.
To start with demoing the project:
There should be an executable file named MicroCART within the Demo-Folder that you can click or start in the terminal by typing ./MicroCART. Once the GUI has opened you can change to the settings tab, change the manual area to USB Remote, and set everything to auto except for throttle. Make sure the battery is plugged in to the quad and that the quad is tethered or caged so that if something were to go wrong no one would be hurt and nothing is damaged. Once this is complete, check that the throttle on the USB controller is all the way down and click the start button.
Ending the demo:
Once the demo is complete click the stop button on the GUI and close out of it. Unplug the quad to not drain the battery life. Put the protective cage over the quad. Turn off the camera system by closing out of Tracking Tools and logging out of the machine. Make sure all testing equipment is turned off. Finally, make sure the wireless controller is turned off and unplugged from the FPGA board.
Trouble Shooting:
If the quad doesn't start up with the manual throttle, check:
Is the camera system on? Does the quad have a working battery? Is the battery plugged into the quad? Is the trainer switch on the wireless controller taped down? Is the wireless controller plugged into the FPGA board? Is the USB controller plugged in? Did you hit the start button? Is throttle set to manual under the Controller Selection in the settings menu?
If none of these are an issue, there is something wrong with the FPGA and hitting the reset button may fix the problem. Otherwise something has gone wrong within the code or the PID controls. Check that it is working and sending commands using the osciloscope. If the PPMs are changing like you would expect, something is wrong on the quad side of the demo.
- ______________________________________________________________________________________________________________________________________________________________
- Opening the Programming Quartus
Start Terminal
run : su root
run : ./n2sdk Brings up the nios2eds
run : quartus & Brings up quarutsIf it aborts - restart the computer
In Quartus
File-> Open Existing Project Open project in the corrrect directory Such as -> /home/ucart/Desktop/microcart-svn/trunk/Flying/LABET_Hardware/labet_101232010.qpf Compile the project Press the "PLAY" button at top of screen ECLIPSE-NIOSII Right Click on the appropriate folder and select clean project or build project Order does matter for building projects clean projectName_bsp clean projectName build projectName_bsp build projectName QUARTUS Wait for compiling to be done Program FPGA Tools->Programmer Check that the hardware programmer is there add .sof file if it is not there This should be in the project folder that you have the project PLUG IN THE BATTERY AT THIS POINT click startbutton ECLIPSE-NIOSII Rightclick on projectName RunAS: niosII hardware TargetConnection: USB-Blaster refresh connection reset on system download click run
- ______________________________________________________________________________________________________________________________________________________________
- SVN Command Line
To checkout an SVN repo to a new folder, type the command:
svn checkout --username yourUserName repoURL
(example: svn checkout --username kengel https://source.ece.iastate.edu/svn/microcart-f2013)To update an SVN folder, type the command:
svn update repoURL
(example: svn update https://source.ece.iastate.edu/svn/microcart-f2013)To add a file to have version control, type the command:
svn add fileName
(example: svn add PID.c)To commit a file to the repository, type the command:
svn commit --message "textMessage" --username yourUserName
(example: svn commit --message "fixed some bugs" --username kengel) - ______________________________________________________________________________________________________________________________________________________________
- Editing the Wiki
1. Click Log in (upper right)
2. To edit a specific page, click the edit tab (top)
3. Refer to Basic Markup SyntaxCreating a new page can simply be done with the "link to another page" syntax. Be careful with your naming convention! Make wiki pages with different names from previous years. Do not modify previous years's pages.