Subversion Repositories FlightCtrl

Rev

Rev 2104 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2104 Rev 2115
Line 6... Line 6...
6
#include "configuration.h"
6
#include "configuration.h"
7
#include "attitude.h"
7
#include "attitude.h"
8
#include "commands.h"
8
#include "commands.h"
9
#include "output.h"
9
#include "output.h"
Line -... Line 10...
-
 
10
 
10
 
11
// The -1024 is an arbrtrary, very low value that will shut off the motor. This is default until the control mixer runs for the first time.
Line 11... Line 12...
11
int16_t controls[4] = { 0, 0, 0, 0 };
12
int16_t controls[4] = { 0, 0, 0, -1024 };
12
 
13
 
13
// Internal variables for reading commands made with an R/C stick.
14
// Internal variables for reading commands made with an R/C stick.
Line 105... Line 106...
105
 * Update variables.
106
 * Update variables.
106
 * Decode commands but do not execute them.
107
 * Decode commands but do not execute them.
107
 */
108
 */
Line 108... Line 109...
108
 
109
 
109
void controlMixer_periodicTask(void) {
110
void controlMixer_periodicTask(void) {
Line 110... Line 111...
110
  int16_t tempPRYT[4] = { 0, 0, 0, 0 };
111
  int16_t tempPRYT[4] = { 0, 0, 0, RC_getZeroThrottle()};
111
 
112
 
112
  // Decode commands.
113
  // Decode commands.