mirror of
https://github.com/synthetos/g2.git
synced 2026-09-23 21:38:54 +08:00
Switched from fabs to std::abs which is type-aware and safer going forward.
This commit is contained in:
@@ -153,7 +153,7 @@ static stat_t _jogging_axis_start(int8_t axis) {
|
||||
static stat_t _jogging_axis_ramp_jog(int8_t axis) // run the jog ramp
|
||||
{
|
||||
float direction = jog.start_pos <= jog.dest_pos ? 1. : -1.;
|
||||
float delta = fabs(jog.dest_pos - jog.start_pos);
|
||||
float delta = std::abs(jog.dest_pos - jog.start_pos);
|
||||
uint8_t last = 0;
|
||||
|
||||
float velocity =
|
||||
|
||||
Reference in New Issue
Block a user