Robotsystem of the Robot Group Leipzig: Hinge2Servo Class Reference

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Examples

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Hinge2Servo Class Reference

PID Servo motor for hinge2 joints at axis 1 (steering axis). More...

`#include <hinge2servo.h>`

Collaboration diagram for Hinge2Servo:

[legend]
List of all members.

## Public Member Functions
| Hinge2Servo (Hinge2Joint *joint, double min, double max, double power)
| min and max values are understood as travel bounds.
void | set (double position)
| sets the set point of the servo.
double | get ()
| returns the position of the hinge in ranges [-1, 1] (scaled by min, max)

## Detailed Description

PID Servo motor for hinge2 joints at axis 1 (steering axis).

## Constructor & Destructor Documentation

Hinge2Servo | ( | Hinge2Joint * | joint,
|  | double | min,
|  | double | max,
|  | double | power |
| ) |  |  |

min and max values are understood as travel bounds.

power is the power of the servo

## Member Function Documentation

double get | ( |  | ) |

returns the position of the hinge in ranges [-1, 1] (scaled by min, max)

void set | ( | double | position | ) |

sets the set point of the servo.

Position must be between -1 and 1. It is scaled to fit into min, max

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

- hinge2servo.h
- hinge2servo.cpp