Skip to content

Commit

Permalink
Use ESC_PPM_MIN/MAX defines
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjairo committed Aug 14, 2012
1 parent e2b1096 commit b5910ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esc-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void set_rotor_throttle(int rotor, float rate)
// 1.50ms = 4915counts = 50% (90deg)
// 1.75ms = 5734counts =
// 2.00ms = 6800counts = 100% (180deg)
int duty = PPM_MIN + (float)(PPM_MAX-PPM_MIN)*rate;
int duty = ESC_PPM_MIN + (float)(ESC_PPM_MAX-ESC_PPM_MIN)*rate;

#ifdef COPTER_DEBUG
SerialUSB.print("Rotor:D");
Expand Down

0 comments on commit b5910ab

Please sign in to comment.