Revision a3c54343 devices/DiWheelDrive/amiro_map.hpp

View differences:

devices/DiWheelDrive/amiro_map.hpp
5 5
#include "linefollow.hpp"
6 6
#include <amiroosconf.h>
7 7
#include <ch.hpp>
8
#include <cstdint>
8 9
#include <math.h>
9 10

  
10 11

  
......
39 40
class AmiroMap {
40 41
public:
41 42
  map_state * get_state() { return &state; }
43
  uint8_t getNodeCount(){ return nodeCount; }
44
  node * getNodeList(){return nodeList; }
45

  
42 46

  
43 47
  AmiroMap(Global *global) : global{global} {}
44 48

  
......
64 68
   */
65 69
  uint8_t update(uint16_t WL, uint16_t WR, LineFollowStrategy strategy);
66 70

  
71

  
72
  /**
73
    If this is called instead of update new fixpoints can automativally
74
    get detected and will be added to the current nodeList.
75
    Internally the update will be called.
76
    If there are no nodes in the node list they will be created.
77
   */
78
  uint8_t trackUpdate(uint16_t WL, uint16_t WR, LineFollowStrategy strategy, ut_states state);
79

  
67 80
private:
68 81
  Global *global;
69 82
  LineFollowStrategy lfStrategy = LineFollowStrategy::EDGE_RIGHT;

Also available in: Unified diff