Software Desgin - LemonRepublica/RPI_AMP GitHub Wiki

The codes of the project will be divided into two parts:main program and GUI.

UML

UML

For main code

Here are four different functions codes,you could find more details here.Main code Desgin

For GUI

It is used for interfacing and user could change some parameters of function in order to get different result.In this part,one windows is created and 5 buttons and 6 knobs.The range of every knob is from 0 to 10 and the accuracy is 0.1.In order to interface with the main code, the GUI will transfer the value to the main code every 0.25s. Actually, you could change the time in the code ,if you want to make the time of transferring longer or shorter.

##Testing Several qDebug are applied(or commented) in the code. If you remove the comment symbol,you can see how is the program going on. For example, when you press the main button, you should see see "Main loop" in the Commend Prompt. And then you can see the input value and output value, they should be about 1500~3000 if the system is working well. You can also check the input of the GUI from the value showed. They should be 0-10. Each effect engaged you should also see the prompt. There will also be some prompt if the BCM2835 or the GUI do not work like "bcm init failed" or the miss of "Userinit".