Revision f1d13b04 devices/DiWheelDrive/amiro_map.hpp

View differences:

devices/DiWheelDrive/amiro_map.hpp
29 29
    } p;
30 30
  };
31 31

  
32
  struct map_state {
33
    // 0 - left, 1- right
34
    uint8_t strategy;
35
    // Node ID of last detected fixpoint
36
    uint8_t current;
37
    // Next node ID
38
    uint8_t next;
39
    //Traveled Distance between current and next in %
40
    uint32_t dist;
41
    // True if the current loaded map is valid
42
    bool valid;
43
    // Length of the currently traveled edge
44
    uint32_t eLength;
45
  };
46 32

  
47 33
class AmiroMap {
48 34
public:
......
143 129

  
144 130
  // Either create new fxpoint or assign point to existing one
145 131
  uint8_t assignFxp(types::position *p1);
132
  void reset();
146 133
};
147 134

  
148 135
}; // namespace amiro

Also available in: Unified diff