![]() |
eBoard
①⑧⑨
Written for SIA 2017/2018
|
this is the main file - nice :D More...
#include "source/eagle_PreprocessorControl.h"#include <avr/pgmspace.h>#include "Arduino.h"#include <avr/io.h>#include <avr/interrupt.h>#include "source/eagle_Twi.h"#include "source/eagle_TwoWire.h"#include "source/eagle_SPI.h"#include <avr/wdt.h>#include "source/eagle_SoftwareSerial.h"#include "source/eagle_Bluetooth.h"#include "source/eagle_RB14Scan.h"#include "source/eagle_Comfort.h"#include "source/eagle_Servo.h"#include "source/eagle_Assert.h"#include "source/eagle_Checks.h"#include "source/eagle_ShiftExt.h"#include "source/eagle_PinCtrl.h"#include "source/eagle_ServoCds55.h"#include "source/eagle_SoccerBoard.h"#include "source/eagle_I2CInOut.h"#include "source/eagle_AX12Servo.h"#include "source/eagle_DynamixelBoard.h"#include "source/eagle_I2C.h"#include "source/eagle_LCD.h"#include "source/eagle_NeoPixel.h"#include "source/eagle_ReptTask.h"#include "source/eagle_Setup.h"#include "source/eagle_HelpMot.h"
Include dependency graph for eBoard.h:Go to the source code of this file.
Namespaces | |
| eagle_impl | |
| this namespace contains all the don't use manually classes ;) | |
Typedefs | |
| typedef int | optVAL_t |
Functions | |
| void | rept_task (void) |
| void | loop (void) |
| As we have an Arduino we need a setup function ;) More... | |
Variables | |
| static bool | STOP = false |
| SoftwareSerial | _serial |
| this is the recomenned-to-use _serial object for bluetooth communcation :D More... | |
| Servo | mainMotor |
| Servo | steerMotor |
this is the main file - nice :D
Definition in file eBoard.h.
| #define __ASSERT_USE_STDERR |
| #define __AVR_ATmega2560__ |
| #define __AVR_ATmega328P__ |
| #define _SPI_H_INCLUDED |
| #define EBOARD_BLUETOOTH 0x1 |
| #define EBOARD_BLUETOOTH_SPEED 19200 |
| #define EBOARD_CHECK_PINS 0x1 |
| #define EBOARD_CHECK_PINS_PWM 0x1 |
| #define EBOARD_CLAMP 0x0 |
| #define EBOARD_DEBUG_MODE 0x1 |
| #define EBOARD_DEBUG_SPEED 9600 |
| #define EBOARD_DRIVE_ZERO 90 |
| #define EBOARD_GUESSPATH 0x1 |
| #define EBOARD_HELPCAR_MAIN 13 |
| #define EBOARD_HELPCAR_STEER 12 |
| #define EBOARD_I2C 0x1 |
| #define EBOARD_I2C_HELPER 0x1 |
| #define EBOARD_LCD 0x1 |
| #define EBOARD_NANO 0x0 |
| #define EBOARD_NEO 0x1 |
| #define EBOARD_PWM_SPE 1 |
| #define EBOARD_SHIFT_REGISTER 0x1 |
| #define EBOARD_SPI_SERVO_MAX 2 |
| #define EBOARD_USE_RESET 0x1 |
| #define EBOARD_USE_SPI 0x1 |
| #define EBOARD_USE_UTILITY 0x1 |
| #define EBOARD_VERSION "3.2.52d" |
| #define EBOARD_VERSION_NBR 509 |
| #define HIGHSPEED |
| #define main eVirtual_main |
| #define PIN_BLUETOOTH_RX 0x13 |
| #define PIN_BLUETOOTH_STATE 0x13 |
| #define PIN_BLUETOOTH_TX 0x12 |
| #define PIN_MAX 0x32 |
| #define PIN_MOTOR_DIR 0x4 |
| #define PIN_MOTOR_SPE 0x5 |
| #define PIN_SHIFT_CLK 0x6 |
| #define PIN_SHIFT_DAT 0x7 |
| #define PIN_SHIFT_LAT 0x8 |
| #define REPT_TASK |
| void loop | ( | void | ) |
As we have an Arduino we need a setup function ;)
| void rept_task | ( | void | ) |
| SoftwareSerial _serial |
this is the recomenned-to-use _serial object for bluetooth communcation :D
The used pins are based on PIN_BLUETOOTH_RX and PIN_BLUETOOTH_TX
|
static |