Skip to content

Commit

Permalink
Moved definition of SERVO_PIN to main.h
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjairo committed Dec 18, 2011
1 parent 2b8466d commit e3bd839
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esc-control.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "main.h"
#include "wirish.h"
#include "utils.h"
#include "esc-control.h"
Expand All @@ -8,7 +9,6 @@
#define SERVO_MAX 6800
#define PPM_CNTS_TO_DEG 0.09
#define SERVO_ANGLE_TO_DUTY 37.44444
#define SERVO_PIN 16

uint8 gpio_state[BOARD_NR_GPIO_PINS];

Expand Down
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@


// Include files
#include "main.h"
#include "wirish.h"
#include "utils.h"
#include "esc-control.h"
Expand All @@ -16,7 +17,6 @@
#define SERVO_MAX 6800
#define PPM_CNTS_TO_DEG 0.09
#define SERVO_ANGLE_TO_DUTY 37.44444
#define SERVO_PIN 16

// Globals
HardwareTimer timer4(4);
Expand Down
1 change: 1 addition & 0 deletions main.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#define SERVO_PIN 16

0 comments on commit e3bd839

Please sign in to comment.