New version of quadcopter software written to OO principles
Dependencies: mbed MODSERIAL filter mbed-rtos ConfigFile PID PPM FreeIMU_external_magnetometer TinyGPS
Diff: Rc/Rc.cpp
- Revision:
- 3:4823d6750629
- Parent:
- 2:969dfa4f2436
--- a/Rc/Rc.cpp Wed Apr 01 11:19:21 2015 +0000 +++ b/Rc/Rc.cpp Fri Apr 24 16:50:20 2015 +0000 @@ -56,8 +56,8 @@ //Altitude mode if(_status.getNavigationMode() == Status::ALTITUDE_HOLD) { - float maxDeadZone = ((float)RC_THRUST_MAX / 2.0) + (float)RC_DEAD_ZONE; - float minDeadZone = ((float)RC_THRUST_MAX / 2.0) - (float)RC_DEAD_ZONE; + float maxDeadZone = (float)RC_HOVER + (float)RC_DEAD_ZONE; + float minDeadZone = (float)RC_HOVER - (float)RC_DEAD_ZONE; if((minDeadZone < mappedRc.throttle) && (mappedRc.throttle <= maxDeadZone)) _status.setDeadZone(true); else _status.setDeadZone(false); }