sas
Modularised monitoring, logging, and control of robots.
Loading...
Searching...
No Matches
driver_thruster_mapping.hpp File Reference

Mapping functions from thruster force to PWM commands for the BlueROV2. More...

Go to the source code of this file.

Functions

double sas::force_to_pwm (double F, double min_pwm, double max_pwm)
 Convert a thruster force into a PWM command.

Detailed Description

Mapping functions from thruster force to PWM commands for the BlueROV2.

Function Documentation

◆ force_to_pwm()

double sas::force_to_pwm ( double F,
double min_pwm = 1100.0,
double max_pwm = 1900.0 )

Convert a thruster force into a PWM command.

Parameters
FThe desired thruster force.
min_pwmThe minimum allowed PWM value.
max_pwmThe maximum allowed PWM value.
Returns
The PWM command, saturated to [min_pwm, max_pwm].