Coder Social home page Coder Social logo

gigabug's People

Contributors

5yler avatar cjdesno avatar spohorec avatar

Watchers

 avatar  avatar  avatar  avatar

gigabug's Issues

Fix Gigatron steering sign errors

On the master branch, commanding a positive steering angle makes the car turn right, and a negative steering angle makes the car turn left.

By the right-hand rule, the yaw angle increases counterclockwise, so both the command input and sensor reading output need to have their sign swapped.

Recalibrate steering potentiometer

After Peter added the filter cap the readings have been a lot smoother. But it's been months since we last calibrated it. I want to know if the limited steering range is the result of the calibration being off, or the new shield we're using.

Tasks

  • modify Arduino code to read potentiometer values here in dcservo.cpp
  • collect pot readings with front wheels turned far left, far right, and straight ahead
  • comment out calibration line and commit updated values

Calibrate Kilotron encoders

The current kilotron branch encoder code is just a copy of the master (Gigatron) branch. We are getting readings from the encoders, but the number of ticks per revolution is probably different, so we need to test how the resulting odometry compares to reality.

Odometry Test

  1. Measure out a fixed length of several meters in a straight line and mark the start and end points
  2. Place Kilotron at the start and launch gigatron_hardware/launch/kilotron.launch
  3. Rosbag record all topics
  4. Drive Kilotron to the end of the line and stop the car, and the rosbag
  5. Compare the values on the odom topic to the actual length traveled

Tasks

  • Perform the above test
    • Bonus Points: Repeat the test in reverse
  • change the PULSES_PER_REV value in kilotron branch if necessary

Make estop issue closed-loop zero velocity commands

The current behavior is to switch to RC throttle (and keep autonomous steering) which will result in coasting. Instead the Arduino should issue closed-loop zero velocity commands, so the car will actually stop.

Tasks

  • update code
    • master branch
    • kilotron branch
  • estop in semiautomatic mode
    • master branch
    • kilotron branch
  • test on car
    • Kilotron
    • Gigatron

Switch default Arduino autonomy mode through ROS

The current Arduino code is hardcoded to have the car running either in fully autonomous mode, or semiautomatic mode (autonomous steering with RC throttle).

Instead, add a callback method to gigabug.ino that will set the mode to either autonomous or semiautomatic.

Add BSD license to source code

Software License Agreement (BSD License)

Copyright (c) 2017, Cult Classic Racing. All rights reserved.

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Verify Kilotron steering

Check if the output of a zero steering angle command from ROS in autonomous mode results in a zero steering angle on the vehicle.

Check if the output of a positive steering angle command from ROS results in steering left, and a negative steering angle command results in steering right.

Test Procedure

Note: this test can only be performed after metatron issue #5 is successfully resolved

  • Pull and upload latest code on kilobug branch to Kilotron Arduino
  • Launch Arduino code: roslaunch gigatron_hardware kilotron.launch
  • Use keyboard to control steering: rosrun gigatron hare
  • Comment here with test results

Relevant topics:

/command/drive with desired steering angle and wheel velocities
/arduino/command/motors with desired steering pwm

Calibrate Gigatron encoders

The right rear wheel consistently gives higher readings for distance traveled. Adjust PULSES_PER_REV on a per-wheel basis if needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.