Subversion Repositories FlightCtrl

Rev

Rev 1887 | Rev 2039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1887 Rev 1969
Line 58... Line 58...
58
 
58
 
59
// For the DebougOut alone.
59
// For the DebougOut alone.
Line 60... Line 60...
60
#include "output.h"
60
#include "output.h"
61
 
61
 
Line 62... Line 62...
62
uint8_t PWMTimeout = 12;
62
uint8_t PWMTimeout = 12;
63
ToMk3Mag_t ToMk3Mag;
63
ToMk3Mag_t toMk3Mag;
64
 
64
 
65
/*********************************************/
65
/*********************************************/
Line 70... Line 70...
70
        DDRC &= ~(1 << DDC4); // set as input
70
        DDRC &= ~(1 << DDC4); // set as input
71
        PORTC |= (1 << PORTC4); // pull up  to increase PWM counter also if nothing is connected
71
        PORTC |= (1 << PORTC4); // pull up  to increase PWM counter also if nothing is connected
Line 72... Line 72...
72
 
72
 
Line 73... Line 73...
73
        PWMTimeout = 0;
73
        PWMTimeout = 0;
74
 
74
 
75
        ToMk3Mag.CalState = 0;
75
        toMk3Mag.CalState = 0;
Line 76... Line 76...
76
        ToMk3Mag.Orientation = 1;
76
        toMk3Mag.Orientation = 1;
77
}
77
}
78
 
78