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 haofan Zheng

Committer:
hazheng
Date:
Thu Apr 20 21:04:10 2017 +0000
Revision:
100:ffbeefc9e218
Parent:
92:e9bd429f16b5
Better version of Intersection detection.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hazheng 92:e9bd429f16b5 1 /**
hazheng 92:e9bd429f16b5 2 * @file CamRegDefinitions.h
hazheng 92:e9bd429f16b5 3 * @brief The header file for the common definition that used for camera SCCB control.
hazheng 92:e9bd429f16b5 4 * @author Jordan Brack <jabrack@mix.wvu.edu>, Haofan Zheng <hazheng@mix.wvu.edu>
hazheng 92:e9bd429f16b5 5 *
hazheng 92:e9bd429f16b5 6 */
hazheng 30:ff7f83ad6369 7 #pragma once
hazheng 30:ff7f83ad6369 8 #ifndef CAM_REG_DEFINITIONS_H
hazheng 30:ff7f83ad6369 9 #define CAM_REG_DEFINITIONS_H
hazheng 30:ff7f83ad6369 10
hazheng 92:e9bd429f16b5 11 #define CAM_REG_WRITEWAIT 20 /*!< @brief The recommanded waiting time after a SCCB write behavior. In micro-sec. */
hazheng 92:e9bd429f16b5 12 #define CAM_REG_NOACK 0 /*!< @brief The NOACK after a SCCB read behavior. */
hazheng 92:e9bd429f16b5 13 #define CAM_REG_I2CFREQ 100000 /*!< @brief The recommanded frequency for camera SCCB communication. */
hazheng 30:ff7f83ad6369 14
hazheng 92:e9bd429f16b5 15 struct sensor_reg { /*!< @brief The struct used to store the register program. */
hazheng 92:e9bd429f16b5 16 uint8_t reg; /*!< @brief The The Register Address. */
hazheng 92:e9bd429f16b5 17 uint8_t val; /*!< @brief The The value that need to be written to the register in that address. */
hazheng 30:ff7f83ad6369 18 };
hazheng 30:ff7f83ad6369 19
hazheng 30:ff7f83ad6369 20 #endif //CAM_REG_DEFINITIONS_H