TAILIEUCHUNG - Building Robots Part 10

156 CHAPTER 7. IC MANUAL File and Function Management When les are loaded into IC, they stay loaded until they are explicitly unloaded. This is usually the functionality that is desired. If one of the program les is being worked on, the other ones will remain in memory so that they don't have to be explicitly re-loaded each time the one undergoing development is reloaded. However, suppose the le is loaded, which contains a denition for the function main. Then the le is loaded, which happens to also contain a denition for main. There will be an error message, because. | 156 CHAPTER 7. IC MANUAL File and Function Management Unloading Files When files are loaded into IC they stay loaded until they are explicitly unloaded. This is usually the functionality that is desired. If one of the program files is being worked on the other ones will remain in memory so that they don t have to be explicitly re-loaded each time the one undergoing development is reloaded. However suppose the file f 00 . c is loaded which contains a definition for the function main. Then the file bar. c is loaded which happens to also contain a definition for main. There will be an error message because both files contain a main. IC will unload due to the error and re-download and any other files that are presently loaded. The solution is to first unload the file containing the main that is not desired and then load the file that contains the new main c unload f c load Configuring IC IC has a multitude of command-line switches that allow control of a number of things. Explanations for these switches can be gotten by issuing the command ic -help . IC stores the search path for and name of the library files internally theses may be changed by executing the command ic -config . When this command is run IC will prompt for a new path and library file name and will create a new executable copy of itself with these changes. Appendix A Introduction to is a hands-on learn-by-doing class in which participants design and build a robot that will play in a competition at the end of the class. From the student s perspective the goal of the class is to design a robotic machine that will be able to navigate its way around the playing surface and successfully interact with game objects including the opposing machine. The machines in MIT s Introduction to Design class are controlled by humans wielding joysticks. They are not robots they are machines. The machines built by students of are robots. They are fully autonomous .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.