From 8f82de3e11eaf08c04db338ba984a87ad39bfb35 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Fri, 6 May 2011 17:51:26 +0000 Subject: [PATCH] changed a bool to uint8_t git-svn-id: https://arducopter.googlecode.com/svn/trunk@2120 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/RC_Channel/RC_Channel.cpp | 4 ++++ libraries/RC_Channel/RC_Channel.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.cpp b/libraries/RC_Channel/RC_Channel.cpp index 2e328d3641..8f96b03d70 100644 --- a/libraries/RC_Channel/RC_Channel.cpp +++ b/libraries/RC_Channel/RC_Channel.cpp @@ -18,6 +18,7 @@ #define RC_CHANNEL_RANGE 1 #define RC_CHANNEL_ANGLE_RAW 2 + // setup the control preferences void RC_Channel::set_range(int low, int high) @@ -53,10 +54,13 @@ RC_Channel::set_filter(bool filter) { _filter = filter; } + void RC_Channel::set_type(uint8_t t) { _type = t; + //Serial.print("type1: "); + //Serial.println(t,DEC); } // call after first read diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index d3da17b63f..0a4bab0038 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -98,7 +98,7 @@ class RC_Channel{ bool _filter; int8_t _reverse; - bool _type; + uint8_t _type; int16_t _high; int16_t _low; };