PiImageStreamer
Loading...
Searching...
No Matches
RobotCfg.h File Reference

Go to the source code of this file.

Macros

#define YAHBOOM_TANK
 
#define AIN1   (21)
 
#define AIN2   (20)
 
#define ENA   (16)
 
#define ENB   (13)
 
#define BIN1   (26)
 
#define BIN2   (19)
 
#define LEFT_TRACK_IN_PIN   (3)
 
#define LEFT_CENTER_TRACK_IN_PIN   (5)
 
#define RIGHT_CENTER_TRACK_IN_PIN   (4)
 
#define RIGHT_TRACK_IN_PIN   (18)
 
#define LED_R   (22)
 
#define LED_G   (27)
 
#define LED_B   (24)
 
#define DL   (16)
 
#define DR   (19)
 
#define BUZZER_GPIO_PIN   (8)
 
#define DS_ECHO   (0)
 
#define DS_TRIG   (1)
 
#define IOCLK   (25)
 
#define ADDR   (24)
 
#define DOUT   (23)
 
#define CHIPSEL   (5)
 
#define CAMERA_AZMITH_PIN   (11)
 
#define CAMERA_ELEVATION_PIN   (9)
 
#define DISTANCE_SENSOR_AZMITH_PIN   (23)
 

Detailed Description

Author
Walter Schilling (schil.nosp@m.ling.nosp@m.@msoe.nosp@m..edu)
Version
1.0

LICENSE

This code is developed as part of the MSOE SWE4211 Real Time Systems course, but can be freely used by others.

SWE4211 Real Time Systems is a required course for students studying the discipline of software engineering.

This Software is provided under the License on an "AS IS" basis and without warranties of any kind concerning the Software, including without limitation merchantability, fitness for a particular purpose, absence of defects or errors, accuracy, and non-infringement of intellectual property rights other than copyright. This disclaimer of warranty is an essential part of the License and a condition for the grant of any rights to this Software.

DESCRIPTION

This file allows us to easily configure the robot for different IO setups. Exactly one robot platform macro (ALPHABOT, ALPHABOT2, FREENOVE, or YAHBOOM_TANK) should be defined. That macro selects the block of GPIO pin assignments below. All pin numbers are Broadcom (BCM) GPIO numbers.

Macro Definition Documentation

◆ AIN1

#define AIN1   (21)

The following definitions are for the ALPHABOT. The following definitions are for the ALPHABOT2. Basically, it defines the GPIO pin for various items. The following definitions are for the Yahboom tank. Basically, it defines the GPIO pin for various items. Pins marked TODO have not yet been verified for this platform. Several of them currently share a GPIO number with another signal (DL with ENA, DR with BIN2, ADDR with LED_B, DOUT with DISTANCE_SENSOR_AZMITH_PIN), so they must be corrected before the features that use them are enabled.

◆ YAHBOOM_TANK

#define YAHBOOM_TANK

This selects the robot platform that is being built for.