![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
main.cpp@0:77f0cd7817c9, 2016-06-02 (annotated)
- Committer:
- gkumar
- Date:
- Thu Jun 02 09:42:49 2016 +0000
- Revision:
- 0:77f0cd7817c9
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gkumar | 0:77f0cd7817c9 | 1 | |
gkumar | 0:77f0cd7817c9 | 2 | switch (reset) |
gkumar | 0:77f0cd7817c9 | 3 | { |
gkumar | 0:77f0cd7817c9 | 4 | case 01: PIN70=1; //ENABLE_BAR Att Sens 1 |
gkumar | 0:77f0cd7817c9 | 5 | break; |
gkumar | 0:77f0cd7817c9 | 6 | case 02: PIN90=1; //ENABLE_BAR Att Sens 2 |
gkumar | 0:77f0cd7817c9 | 7 | break; |
gkumar | 0:77f0cd7817c9 | 8 | case 03: PIN82=0; //DRV_XY Fault bar |
gkumar | 0:77f0cd7817c9 | 9 | wait(1); |
gkumar | 0:77f0cd7817c9 | 10 | PIN82=1; // Toggle DRV_XY sleep |
gkumar | 0:77f0cd7817c9 | 11 | break; |
gkumar | 0:77f0cd7817c9 | 12 | case 04: PIN88=0; //DRV_Z Fault bar |
gkumar | 0:77f0cd7817c9 | 13 | wait(1); |
gkumar | 0:77f0cd7817c9 | 14 | PIN88=1; // Toggle DRV_Z sleep |
gkumar | 0:77f0cd7817c9 | 15 | break; |
gkumar | 0:77f0cd7817c9 | 16 | case 05: PIN71=0; //DRV_switch_XY Fault bar |
gkumar | 0:77f0cd7817c9 | 17 | break; |
gkumar | 0:77f0cd7817c9 | 18 | case 06: PIN40=0; //DRV_switch_Z Fault bar |
gkumar | 0:77f0cd7817c9 | 19 | break; |
gkumar | 0:77f0cd7817c9 | 20 | case 07: PIN71=1; //Turn on DRV_switch_XY -on TC |
gkumar | 0:77f0cd7817c9 | 21 | break; |
gkumar | 0:77f0cd7817c9 | 22 | case 08: PIN40=1; //Turn on DRV_switch_Z -when called for Z axis moment alone |
gkumar | 0:77f0cd7817c9 | 23 | break; |
gkumar | 0:77f0cd7817c9 | 24 | case 09: PIN14=1; //Beacon switch |
gkumar | 0:77f0cd7817c9 | 25 | wait(1); |
gkumar | 0:77f0cd7817c9 | 26 | PIN14=0; // Toggle |
gkumar | 0:77f0cd7817c9 | 27 | break; |
gkumar | 0:77f0cd7817c9 | 28 | } |
gkumar | 0:77f0cd7817c9 | 29 | switch(in) { |
gkumar | 0:77f0cd7817c9 | 30 | case 'h': |
gkumar | 0:77f0cd7817c9 | 31 | case 'H': |
gkumar | 0:77f0cd7817c9 | 32 | out = 1; |
gkumar | 0:77f0cd7817c9 | 33 | break; |
gkumar | 0:77f0cd7817c9 | 34 | case 'l': |
gkumar | 0:77f0cd7817c9 | 35 | case 'L': |
gkumar | 0:77f0cd7817c9 | 36 | out = 0; |
gkumar | 0:77f0cd7817c9 | 37 | break; |
gkumar | 0:77f0cd7817c9 | 38 | case 's': |
gkumar | 0:77f0cd7817c9 | 39 | case 'S': |
gkumar | 0:77f0cd7817c9 | 40 | sing(); |
gkumar | 0:77f0cd7817c9 | 41 | break; |
gkumar | 0:77f0cd7817c9 | 42 | default: |
gkumar | 0:77f0cd7817c9 | 43 | pc.printf("I don't know: \"%c\"\n", in); |
gkumar | 0:77f0cd7817c9 | 44 | } |