From 50c3b2e4fdf10fcab458d50ba8e2f989a98c5dbc Mon Sep 17 00:00:00 2001 From: "deweibel@gmail.com" Date: Mon, 17 Jan 2011 04:05:48 +0000 Subject: [PATCH] Add initial values for scaling and dead zone to RC_Channel constructor git-svn-id: https://arducopter.googlecode.com/svn/trunk@1506 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/RC_Channel/RC_Channel.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index eba934de30..37ca3713bb 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -17,7 +17,10 @@ class RC_Channel{ /// A RC_Channel constructed in this fashion does not support save/restore. /// RC_Channel() : - _address(0) + _address(0), + _reverse(1), + dead_zone(0), + scale_output(1.0) {} /// Constructor @@ -30,7 +33,9 @@ class RC_Channel{ _address(address), _high(1), _filter(true), - _reverse(1) + _reverse(1), + dead_zone(0), + scale_output(1.0) {} // setup min and max radio values in CLI