From 3f36e7df743436687d6ec66e92d17fb9d9edf731 Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Wed, 12 Sep 2018 01:33:00 -0700 Subject: [PATCH] make docs TOC consistent --- docs/commands.md | 10 ++++++++++ docs/getting-started.md | 5 ++--- docs/interfaces.md | 11 ++++------- docs/odrivetool.md | 12 ++++++++++++ docs/troubleshooting.md | 15 ++++++++++++++- 5 files changed, 42 insertions(+), 11 deletions(-) diff --git a/docs/commands.md b/docs/commands.md index 212a4899..64fe1870 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -2,6 +2,16 @@ We will use the `` as a placeholder for any ODrive object. Every ODrive controller is an ODrive object. In `odrivetool` this is usually `odrv0`. Furthermore we use `` as a placeholder for any axis, which is an attribute of an ODrive object (for example `odrv0.axis0`). An axis represents where the motors are connected. (axis0 for M0 or axis1 for M1) +### Table of contents + + +- [Per-Axis commands](#per-axis-commands) +- [System monitoring commands](#system-monitoring-commands) +- [General system commands](#general-system-commands) +- [Setting up sensorless](#setting-up-sensorless) + + + ## Per-Axis commands For the most part, both axes on the ODrive can be controlled independently. diff --git a/docs/getting-started.md b/docs/getting-started.md index b4ec004d..fd453bbc 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -7,8 +7,7 @@ permalink: / # Getting Started ### Table of contents - - + - [Hardware Requirements](#hardware-requirements) - [Wiring up the ODrive](#wiring-up-the-odrive) @@ -18,7 +17,7 @@ permalink: / - [Position control of M0](#position-control-of-m0) - [What's next?](#whats-next) - + ## Hardware Requirements diff --git a/docs/interfaces.md b/docs/interfaces.md index be759832..ba6ccfb0 100644 --- a/docs/interfaces.md +++ b/docs/interfaces.md @@ -5,19 +5,16 @@ The ODrive can be controlled over various ports and protocols. If you're comfortable with embedded systems development, you can also run custom code directly on the ODrive. For that refer to the [developer documentation](developer-guide.md). ### Table of contents - - + - [Pinout](#pinout) - [Native Protocol](#native-protocol) -- [ASCII Protocol](#ascii-protocol) (and Arduino) +- [ASCII protocol](#ascii-protocol) - [Step/direction](#stepdirection) -- [RC PWM input](#rc-pwm-input) (coming soon) +- [RC PWM input](#rc-pwm-input) - [Ports](#ports) - - [USB](#usb) - - [UART](#uart) - + ## Pinout diff --git a/docs/odrivetool.md b/docs/odrivetool.md index 80d926b7..2356266c 100644 --- a/docs/odrivetool.md +++ b/docs/odrivetool.md @@ -2,6 +2,18 @@ The ODrive Tool is the accompanying PC program for the ODrive. It's main purpose is to provide an interactive shell to control the device manually, as well as some supporting functions like firmware update. +### Table of contents + + +- [Installation](#installation) +- [Multiple ODrives](#multiple-odrives) +- [Configuration Backup](#configuration-backup) +- [Device Firmware Update](#device-firmware-update) +- [Flashing with an STLink](#flashing-with-an-stlink) +- [Liveplotter](#liveplotter) + + + ## Installation Refer to the [Getting Started guide](getting-started#downloading-and-installing-tools). diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 94f51117..b6d36720 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -1,5 +1,18 @@ # Troubleshooting +Table of Contents: + + +- [Error codes](#error-codes) +- [Common Axis Errors](#common-axis-errors) +- [Common Motor Errors](#common-motor-errors) +- [Common Encoder Errors](#common-encoder-errors) +- [USB Connectivity Issues](#usb-connectivity-issues) +- [Firmware Issues](#firmware-issues) +- [Other issues that may not produce an error code](#other-issues-that-may-not-produce-an-error-code) + + + ## Error codes If your ODrive is not working as expected, run `odrivetool` and type `hex(.error)` Enter where `` is the axis that isn't working. This will display a [hexadecimal](https://en.wikipedia.org/wiki/Hexadecimal) representation of the error code. Each bit represents one error flag. @@ -96,7 +109,7 @@ Check that your encoder is a model that has an index pulse. If your encoder does * Try a different USB cable * Try routing your USB cable so that it is far away from the motor and PSU cables to reduce EMI -## **Firmware Issues** +## Firmware Issues ### Failure to build the firmware when running `make` - Clear out temporary files from previous compiles by first running `make clean` to prevent conflicts.