Rev 2092 | Rev 2158 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2092 | Rev 2098 | ||
---|---|---|---|
Line 70... | Line 70... | ||
70 | 70 | ||
71 | void flight_takeOff() { |
71 | void flight_takeOff() { |
72 | // This is for GPS module to mark home position. |
72 | // This is for GPS module to mark home position. |
73 | // TODO: What a disgrace, change it. |
73 | // TODO: What a disgrace, change it. |
74 | MKFlags |= MKFLAG_CALIBRATE; |
- | |
75 | 74 | MKFlags |= MKFLAG_CALIBRATE; |
|
76 | HC_setGround(); |
75 | HC_setGround(); |
77 | #ifdef USE_MK3MAG |
76 | #ifdef USE_MK3MAG |
78 | attitude_resetHeadingToMagnetic(); |
77 | attitude_resetHeadingToMagnetic(); |
79 | compass_setTakeoffHeading(heading); |
78 | compass_setTakeoffHeading(heading); |