SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.
Dependencies: TSI USBDevice mbed-dev
Fork of SmartWheels by
GlobalVariable.h@94:32712e603a5f, 2017-04-19 (annotated)
- Committer:
- hazheng
- Date:
- Wed Apr 19 18:57:23 2017 +0000
- Revision:
- 94:32712e603a5f
- Parent:
- 87:15fcf7891bf9
Finished all documentation.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hazheng | 94:32712e603a5f | 1 | /** |
hazheng | 94:32712e603a5f | 2 | * @file GlobalVariable.h |
hazheng | 94:32712e603a5f | 3 | * @brief The header file for the global variable. Some object (ex. SPI port) can have only one instance, but it is used in many different place. Thus, these variables will be declare in this header file. |
hazheng | 94:32712e603a5f | 4 | * @author Jordan Brack <jabrack@mix.wvu.edu>, Haofan Zheng <hazheng@mix.wvu.edu> |
hazheng | 94:32712e603a5f | 5 | * |
hazheng | 94:32712e603a5f | 6 | */ |
hazheng | 94:32712e603a5f | 7 | #pragma once |
hazheng | 29:f87d8790f57d | 8 | #ifndef GLOBAL_VARIABLE_H |
hazheng | 29:f87d8790f57d | 9 | #define GLOBAL_VARIABLE_H |
hazheng | 29:f87d8790f57d | 10 | |
hazheng | 29:f87d8790f57d | 11 | #include <mbed.h> |
hazheng | 29:f87d8790f57d | 12 | |
hazheng | 94:32712e603a5f | 13 | extern SPI g_spi_port; /*!< @brief The SPI port connection. NOTE: This is a declaration of a extern variable. It is actually defined and initialized in main.cpp file. */ |
hazheng | 29:f87d8790f57d | 14 | |
hazheng | 29:f87d8790f57d | 15 | #endif //GLOBAL_VARIABLE_H |