Public Member Functions
AnalogSetter Class Reference

Setter class that sets its value to an analog output pin. More...

#include <AnalogSetter.h>

Inheritance diagram for AnalogSetter:
Inheritance graph
Collaboration diagram for AnalogSetter:
Collaboration graph

List of all members.

Public Member Functions

 AnalogSetter (uint8_t pin)
void setPin (uint8_t pin)
virtual void input (int value)
virtual void failsafe ()
 Called when the source of input data is lost, and the Setter is required to fail in a safe way.
- Public Member Functions inherited from Setter
 Setter ()
 Setter (Setter *target)
 Constructor with setting the target.
virtual void setTarget (Setter *target)
void setFailsafeValue (int failsafeValue)
 Sets the failsafeValue.
int failsafeValue ()

Additional Inherited Members

- Protected Attributes inherited from Setter
 This is the instance of Setter that will be given the transfotmed output value.
int _failsafeValue

Detailed Description

Setter class that sets its value to an analog output pin.

Mike McCauley (mikem.nosp@m.@air.nosp@m.spayc.nosp@m.e.co.nosp@m.m)
DifferentialRCRx.pde, HBridge2RCRx.pde, HBridgeRCRx.pde, and TestSuite.pde.

Constructor & Destructor Documentation

AnalogSetter::AnalogSetter ( uint8_t  pin)
[in]pinThe pin number of the analog output to set
Mike McCauley (mikem.nosp@m.@air.nosp@m.spayc.nosp@m.e.co.nosp@m.m)

Member Function Documentation

void AnalogSetter::input ( int  value)

Input the value to be used to set the analog output Analog outputs are within the range 0 to 255 for 0.0 to 5.0 V On Duemilanove, output is PWM at approx 1kHz

[in]valueThe input value

Reimplemented from Setter.

Referenced by failsafe().

void AnalogSetter::setPin ( uint8_t  pin)

Set or change the output pin

[in]pinThe Arduino pin to use for output

The documentation for this class was generated from the following files: