Revision 61544eee devices/DiWheelDrive/userthread.hpp

View differences:

devices/DiWheelDrive/userthread.hpp
8 8

  
9 9
// Speed when driving towards the docking station
10 10
#define CHARGING_SPEED 5
11
#define DETECTION_SPEED 10
12
#define DIST_THRESH 100
13
#define RELEASE_COUNT 200
11 14
// Thresh to determain how much update steps should pass while alining
12
#define MAX_CORRECTION_STEPS 260
15
#define MAX_CORRECTION_STEPS 300
13 16
// Thresh for wheel proxy sensors, when summed values fall below the state changes
14 17
#define PROXY_WHEEL_THRESH 18000
15 18
// Thresh for detecting obsticles
16
#define PROXY_RING_THRESH 20000
19
#define PROXY_RING_THRESH 15000
17 20
// Thresh for how long (update steps) the front sensors are allowed to detect white
18
#define WHITE_COUNT_THRESH 120
21
#define WHITE_COUNT_THRESH 150
19 22
// Rotation around 180 degrees in microradian
20 23
#define ROTATION_180 3141592
21 24
// Rotation around -20 degrees in microradian
22 25
#define ROTATION_20 -349065
23 26
#define ROTATION_DURATION 10000
24 27

  
25
#define RING_PROX_FRONT_THRESH 20000
26
#define PROX_MAX_VAL 65530
28
#define RING_PROX_FRONT_THRESH 18000
29
#define PROX_MAX_VAL 65430
27 30

  
28 31
namespace amiro {
29 32

  

Also available in: Unified diff