This simple example handles 3 RCOIP receiver channels. Its configured like this: 1 Differential motor driver (receiver channels 0 and 1) driving 4 analog outputs configured as 2 HBridges 1 Digital output (horn) (receiver channel 4) This is the program used for the tank shown in http://www.airspayce.com/mikem/arduino/RCKit/tank.mp4
#include <SPI.h>
#include <WiShield.h>
#include <Ethernet.h>
#include <WiShieldTransceiver.h>
#include <RCRx.h>
#include <Servo.h>
#include <AnalogSetter.h>
#include <HBridgeSetter.h>
#include <DifferentialSetter.h>
#include <DigitalSetter.h>
#include <AccelStepper.h>
#define HORN_PIN 8
#define NUM_OUTPUTS 5
#define MOTOR_L_FWD 3
#define MOTOR_L_REV 5
#define MOTOR_R_FWD 6
#define MOTOR_R_REV 9
Setter* outputs[NUM_OUTPUTS] = {&di1, &ds1, 0, 0, &horn};
void setup()
{
Serial.begin(9600);
pinMode(HORN_PIN, OUTPUT);
analogWrite(MOTOR_R_REV, 0);
}
void loop()
{
}