This topic has 6 replies, 2 voices, and was last updated 6 years, 7 months ago by SuperDroid.

  • Author
    Posts
  • #4482
     Daniel Phelps
    Participant

    I have an HD2 Treaded ATR with programmable Wi-Fi package… it also has the RC RC override. Recently our Spektrum was reset and we lost the “Mode 1” operation for a set of actuators. “Mode 0” was set to drive, while “mode 1” was set to operate a set of actuators on the bot…

    My question is.. I still have “mode 0” to drive.. but since the Spektrum was reset, we lost “Mode 1” to operate the actuators. The switch was assigned to the “flaps/gyro” switch… Ive gone through the arduino code.. but this is definitely a Spektrum problem. The model was not backed up as well.

    Any thoughts?

    #4483
     Daniel Phelps
    Participant

    Photos

    Attachments:
    You must be logged in to view attached files.
    #4486
     SuperDroid
    Keymaster

    If the remote was reset then you might have to remap the mode switch to the correct receiver output. Does the robot still drive when the switch is on “mode 1”? I’m guessing you can still drive because the Arduino assumes mode 0 on startup. I might be a good idea to code a printout of the receiver PWM values in the Arduino source to see what’s going on.

    #4487
     Daniel Phelps
    Participant

    Yes.. It drives in both modes..

    Pin codes:

    // Hardware Pin Definitions
    // ****************************************************
    #define RC_SIGNAL_PIN A14
    #define RC_OVERRIDE_PIN A15
    #define RC_DRIVE_PIN A12
    #define RC_TURN_PIN A13

    #define PAN_SERVO_PIN 6 // Camera Servo Connections
    #define TILT_SERVO_PIN 7

    #4488
     Daniel Phelps
    Participant

    I’m assuming I would have to map OVERRIDE_PIN A15 (& the corresponding RX pin) TO THE “FLAPS/GYRO” switch?

    #4489
     SuperDroid
    Keymaster

    Okay. It sounds like you just need to remap the mode switch on the transmitter side to what ever channel pin A14 is connected to on the receiver. If that doesn’t work, printout the input values from the receiver in the Arduino serial monitor while flipping the switch on the transmitter.

    #4490
     SuperDroid
    Keymaster

    The mapping really depends how the values are applied in the Arduino code.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Login Register

©2024 SDRobots.com | All rights reserved.

Log in with your credentials

or    

Forgot your details?

Create Account