Rev 2020 | Rev 2032 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2020 | Rev 2026 | ||
---|---|---|---|
Line 212... | Line 212... | ||
212 | return boardRelease; |
212 | return boardRelease; |
213 | } |
213 | } |
Line 214... | Line 214... | ||
214 | 214 | ||
215 | void setOtherDefaults(void) { |
215 | void setOtherDefaults(void) { |
- | 216 | // Height Control |
|
216 | // Height Control |
217 | staticParams.airpressureAccZCorrection = 128+56; |
217 | staticParams.heightP = 10; |
218 | staticParams.heightP = 10; |
218 | staticParams.heightD = 30; |
219 | staticParams.heightD = 30; |
219 | staticParams.heightSetting = 251; |
220 | staticParams.heightSetting = 251; |
220 | staticParams.heightControlMaxThrottleChange = 10; |
221 | staticParams.heightControlMaxThrottleChange = 10; |
Line 309... | Line 310... | ||
309 | mixerMatrix.motor[i][MIX_THROTTLE] = i < 4 ? 64 : 0; |
310 | mixerMatrix.motor[i][MIX_THROTTLE] = i < 4 ? 64 : 0; |
310 | mixerMatrix.motor[i][MIX_PITCH] = 0; |
311 | mixerMatrix.motor[i][MIX_PITCH] = 0; |
311 | mixerMatrix.motor[i][MIX_ROLL] = 0; |
312 | mixerMatrix.motor[i][MIX_ROLL] = 0; |
312 | mixerMatrix.motor[i][MIX_YAW] = 0; |
313 | mixerMatrix.motor[i][MIX_YAW] = 0; |
313 | } |
314 | } |
314 | /* |
- | |
315 | // default = Quadro |
315 | // default = Quadro |
316 | mixerMatrix.motor[0][MIX_PITCH] = +64; |
316 | mixerMatrix.motor[0][MIX_PITCH] = +64; |
317 | mixerMatrix.motor[0][MIX_YAW] = +64; |
317 | mixerMatrix.motor[0][MIX_YAW] = +64; |
318 | mixerMatrix.motor[1][MIX_PITCH] = -64; |
318 | mixerMatrix.motor[1][MIX_PITCH] = -64; |
319 | mixerMatrix.motor[1][MIX_YAW] = +64; |
319 | mixerMatrix.motor[1][MIX_YAW] = +64; |
320 | mixerMatrix.motor[2][MIX_ROLL] = -64; |
320 | mixerMatrix.motor[2][MIX_ROLL] = -64; |
321 | mixerMatrix.motor[2][MIX_YAW] = -64; |
321 | mixerMatrix.motor[2][MIX_YAW] = -64; |
322 | mixerMatrix.motor[3][MIX_ROLL] = +64; |
322 | mixerMatrix.motor[3][MIX_ROLL] = +64; |
323 | mixerMatrix.motor[3][MIX_YAW] = -64; |
323 | mixerMatrix.motor[3][MIX_YAW] = -64; |
324 | memcpy(mixerMatrix.name, "Quadro\0", 7); |
324 | memcpy(mixerMatrix.name, "Quadro\0", 7); |
325 | */ |
- | |
Line -... | Line 325... | ||
- | 325 | ||
326 | 326 | /* |
|
327 | // default = X |
327 | // default = X |
328 | mixerMatrix.motor[0][MIX_PITCH] = +45; |
328 | mixerMatrix.motor[0][MIX_PITCH] = +45; |
329 | mixerMatrix.motor[0][MIX_ROLL] = +45; |
329 | mixerMatrix.motor[0][MIX_ROLL] = +45; |
Line 338... | Line 338... | ||
338 | mixerMatrix.motor[2][MIX_YAW] = -64; |
338 | mixerMatrix.motor[2][MIX_YAW] = -64; |
Line 339... | Line 339... | ||
339 | 339 | ||
340 | mixerMatrix.motor[3][MIX_PITCH] = -45; |
340 | mixerMatrix.motor[3][MIX_PITCH] = -45; |
341 | mixerMatrix.motor[3][MIX_ROLL] = +45; |
341 | mixerMatrix.motor[3][MIX_ROLL] = +45; |
- | 342 | mixerMatrix.motor[3][MIX_YAW] = -64; |
|
Line 342... | Line 343... | ||
342 | mixerMatrix.motor[3][MIX_YAW] = -64; |
343 | */ |
343 | 344 | ||
Line 344... | Line 345... | ||
344 | memcpy(mixerMatrix.name, "X\0", 7); |
345 | memcpy(mixerMatrix.name, "X\0", 7); |