Leds work simultanously. Version 3.1

Dependencies:   HCSR

Dependents:   bertl_led bertl_led bertl_led bertl_led ... more

Fork of Bertl by Bertl_Team_PE

Embed: (wiki syntax)

« Back to documentation index

const.h File Reference

const.h File Reference

A Documented file. name: const.h Version: 3.2
author: PE HTL BULME
email: pe@bulme.at
description: Constants for ur_Bertl The Robot Constant for Robot from objectiv Robot added. More...

Go to the source code of this file.

Variables

const int MOVE = 500
 ms move forward or backward
const int TURN = 500
 ms TurnLeft or TurnRight (nearly 90 degree)
const int STEPTIME = 20
 ms turn left or right for adjusting moves for TurnLeft or TurnRight
const int ULTRASONIC_DISTANCE = 6
 Bertl Ultrasonic Distance Sensor from 1 to n; 5 is ok for nearly 5 cm.
const float SPEED = 0.1
 Bertl speed 0.2 (slow) - 1.0 (fast).
const int DISTANCE = 12
 one wheel turn is appr. 24 ticks.
const int ANGLE = 12
 12 is nearly 90 degree turn left.
const int BTN_FLL = 0x80
 button front left outer
const int BTN_FL = 0x04
 button front left
const int BTN_FM = 0x01
 button front middle
const int BTN_FR = 0x08
 button front right
const int BTN_FRR = 0x40
 button front right outer
const int BTN_BL = 0x10
 button back left
const int BTN_BM = 0x02
 button back middle
const int BTN_BR = 0x20
 button back right
const int LED_FL1 = 0x01
 front LED white
const int LED_FL2 = 0x02
 front LED yellow
const int LED_FR1 = 0x04
 front LED white
const int LED_FR2 = 0x08
 front LED yellow
const int LED_BL1 = 0x20
 yellow LED back left outer
const int LED_BL2 = 0x10
 red LED back left inner
const int LED_BR1 = 0x80
 yellow LED back right outer
const int LED_BR2 = 0x40
 red LED back right inner

Detailed Description

A Documented file. name: const.h Version: 3.2
author: PE HTL BULME
email: pe@bulme.at
description: Constants for ur_Bertl The Robot Constant for Robot from objectiv Robot added.

Definition in file const.h.


Variable Documentation

int ANGLE = 12

12 is nearly 90 degree turn left.

Warning:
maybe the number has to be adjusted

Definition at line 32 of file const.h.

const int BTN_BL = 0x10

button back left

Definition at line 39 of file const.h.

const int BTN_BM = 0x02

button back middle

Definition at line 40 of file const.h.

const int BTN_BR = 0x20

button back right

Definition at line 41 of file const.h.

const int BTN_FL = 0x04

button front left

Definition at line 35 of file const.h.

const int BTN_FLL = 0x80

button front left outer

Definition at line 34 of file const.h.

const int BTN_FM = 0x01

button front middle

Definition at line 36 of file const.h.

const int BTN_FR = 0x08

button front right

Definition at line 37 of file const.h.

const int BTN_FRR = 0x40

button front right outer

Definition at line 38 of file const.h.

int DISTANCE = 12

one wheel turn is appr. 24 ticks.

Warning:
maybe the number has to be adjusted

Definition at line 28 of file const.h.

const int LED_BL1 = 0x20

yellow LED back left outer

Definition at line 49 of file const.h.

const int LED_BL2 = 0x10

red LED back left inner

Definition at line 50 of file const.h.

const int LED_BR1 = 0x80

yellow LED back right outer

Definition at line 51 of file const.h.

const int LED_BR2 = 0x40

red LED back right inner

Definition at line 52 of file const.h.

const int LED_FL1 = 0x01

front LED white

Definition at line 43 of file const.h.

const int LED_FL2 = 0x02

front LED yellow

Definition at line 44 of file const.h.

const int LED_FR1 = 0x04

front LED white

Definition at line 45 of file const.h.

const int LED_FR2 = 0x08

front LED yellow

Definition at line 46 of file const.h.

const int MOVE = 500

ms move forward or backward

Definition at line 13 of file const.h.

int SPEED = 0.1

Bertl speed 0.2 (slow) - 1.0 (fast).

Warning:
speed below 0.2 possible the motor won't start

Definition at line 24 of file const.h.

const int STEPTIME = 20

ms turn left or right for adjusting moves for TurnLeft or TurnRight

Definition at line 15 of file const.h.

const int TURN = 500

ms TurnLeft or TurnRight (nearly 90 degree)

Definition at line 14 of file const.h.

Bertl Ultrasonic Distance Sensor from 1 to n; 5 is ok for nearly 5 cm.

Warning:
no warning

Definition at line 20 of file const.h.