Embedded Motion Control 2015/FAQ: Difference between revisions
(→PICO) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 11: | Line 11: | ||
== Ubuntu == | == Ubuntu == | ||
=== My laptop is stuck on maximum brightness === | |||
Open your Terminal. Type | |||
sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf | |||
A text editor will open. Add the following content | |||
Section "Device" | |||
Identifier "card0" | |||
Driver "intel" | |||
Option "Backlight" "intel_backlight" | |||
BusID "PCI:0:2:0" | |||
EndSection | |||
Log out and back in. You can now use the brightness controls on your keyboard to change the brightness. | |||
== C++ == | == C++ == | ||
Line 23: | Line 39: | ||
== PICO == | == PICO == | ||
=== What are the constraints on the maximum velocity of PICO ? === | |||
0.5 m/s lateral and 1.2 rad/s rotational. | |||
=== What is approximately the width of the corridor ? === | |||
1 meter it may be 0.5 to 1.5 as a result of human error. | |||
=== How many ''requestOpenDoor()'''s may we use? === | |||
As many as you want and need. According to the rules it is not even forbidden to constantly ring it. | |||
== QT Creator == | |||
=== My program is not building and running within Qt Creator === | |||
When building the program does not work in QT creator, but does work in the terminal, the following may fix the problem. | |||
When your project is open, click 'Projects' on the left task bar. Scroll down to 'Build Environment', and expand it (click Details). Now, all the way to the bottom right, click 'Batch Edit'. | |||
Next, open your terminal (ctrl+alt+t), and type | |||
printenv | |||
Select the entire output (you probably only need a few relevant variables, but I can be bothered to check which), and copy (ctrl+shift+c). Paste the entire output in your QT creator Batch Edit window, and click OK. Building with CTRL+B should work now! |
Latest revision as of 19:02, 16 June 2016
When you ran into a problem, try to find the solution here first. If it's not here, try to find an answer by googling your problem, asking fellow students, or, as a very last resort, ask your tutor! If you found a solution, please put it here such that others can use it! Try to be as consise yet descriptive as possible, and try to file your Problem-Solution pair under the correct category (or add a new category if necessary).
Example
Just as an example! Please remove this section if you're the first to add a Problem-Solution pair!
My computer is on fire. Is this a bad thing?
Nah, probably not, the fire will soon die out. Be sure though to commit all your changes to the SVN! Just in case...
Ubuntu
My laptop is stuck on maximum brightness
Open your Terminal. Type
sudo gedit /usr/share/X11/xorg.conf.d/20-intel.conf
A text editor will open. Add the following content
Section "Device" Identifier "card0" Driver "intel" Option "Backlight" "intel_backlight" BusID "PCI:0:2:0" EndSection
Log out and back in. You can now use the brightness controls on your keyboard to change the brightness.
C++
Everything related to the programming language
SVN
Everything related to Subversion
PICO
What are the constraints on the maximum velocity of PICO ?
0.5 m/s lateral and 1.2 rad/s rotational.
What is approximately the width of the corridor ?
1 meter it may be 0.5 to 1.5 as a result of human error.
How many requestOpenDoor()'s may we use?
As many as you want and need. According to the rules it is not even forbidden to constantly ring it.
QT Creator
My program is not building and running within Qt Creator
When building the program does not work in QT creator, but does work in the terminal, the following may fix the problem.
When your project is open, click 'Projects' on the left task bar. Scroll down to 'Build Environment', and expand it (click Details). Now, all the way to the bottom right, click 'Batch Edit'.
Next, open your terminal (ctrl+alt+t), and type
printenv
Select the entire output (you probably only need a few relevant variables, but I can be bothered to check which), and copy (ctrl+shift+c). Paste the entire output in your QT creator Batch Edit window, and click OK. Building with CTRL+B should work now!