imu rev1
Fork of AIviate by
control.h@3:f9e18a9cd9af, 2013-11-01 (annotated)
- Committer:
- teamgoat
- Date:
- Fri Nov 01 01:23:04 2013 +0000
- Revision:
- 3:f9e18a9cd9af
- Parent:
- 2:452dd766d212
- Child:
- 4:44a5b1e8fd27
Gyro is working; note: need to implement zero-level canceling on gyro (zero-level is result of stress on sensor being mounted on PCB)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
teamgoat | 0:0c627ff4c5ed | 1 | #ifndef CONTROL_H |
teamgoat | 0:0c627ff4c5ed | 2 | #define CONTROL_H |
teamgoat | 0:0c627ff4c5ed | 3 | |
teamgoat | 2:452dd766d212 | 4 | void schedule(); |
teamgoat | 2:452dd766d212 | 5 | void init(); |
teamgoat | 2:452dd766d212 | 6 | |
teamgoat | 0:0c627ff4c5ed | 7 | typedef struct |
teamgoat | 0:0c627ff4c5ed | 8 | { |
teamgoat | 0:0c627ff4c5ed | 9 | unsigned int status; |
teamgoat | 0:0c627ff4c5ed | 10 | unsigned int block_pid; |
teamgoat | 0:0c627ff4c5ed | 11 | void (*start)(void); |
teamgoat | 0:0c627ff4c5ed | 12 | } process; |
teamgoat | 0:0c627ff4c5ed | 13 | |
teamgoat | 0:0c627ff4c5ed | 14 | typedef enum |
teamgoat | 0:0c627ff4c5ed | 15 | { |
teamgoat | 0:0c627ff4c5ed | 16 | READY, |
teamgoat | 0:0c627ff4c5ed | 17 | BLOCKED, |
teamgoat | 0:0c627ff4c5ed | 18 | ZOMBIE, |
teamgoat | 0:0c627ff4c5ed | 19 | EMPTY |
teamgoat | 0:0c627ff4c5ed | 20 | } proc_stat; |
teamgoat | 0:0c627ff4c5ed | 21 | |
teamgoat | 0:0c627ff4c5ed | 22 | #endif //CONTROL_H |