Revision 61b0791a devices/PowerManagement/userthread.h
devices/PowerManagement/userthread.h | ||
---|---|---|
9 | 9 |
class UserThread : public chibios_rt::BaseStaticThread<USER_THREAD_STACK_SIZE> |
10 | 10 |
{ |
11 | 11 |
public: |
12 |
|
|
13 |
enum State { |
|
14 |
IDLE, |
|
15 |
OBSTACLE_AVOIDANCE, |
|
16 |
WII_STEERING, |
|
17 |
}; |
|
18 |
|
|
19 |
public: |
|
12 | 20 |
explicit UserThread(); |
13 | 21 |
|
14 | 22 |
virtual ~UserThread(); |
15 | 23 |
|
16 | 24 |
virtual msg_t main(); |
25 |
|
|
26 |
void setNextState(const State state); |
|
27 |
|
|
28 |
State getCurrenState() const; |
|
29 |
|
|
30 |
msg_t setWiiAddress(const char* address); |
|
31 |
|
|
32 |
float setWiiDeadzone(const float deadzone); |
|
17 | 33 |
}; |
18 | 34 |
|
19 | 35 |
} // end of namespace amiro |
Also available in: Unified diff