File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,8 @@ namespace myactuator_rmd {
294
294
*
295
295
* \param[in] acceleration
296
296
* The desired acceleration/deceleration in dps with a resolution of 1 dps/s [100, 60000]
297
+ * For continuous motions the acceleration should be set to the value 0, see
298
+ * https://github.com/2b-t/myactuator_rmd/issues/10#issuecomment-2195847459
297
299
* \param[in] mode
298
300
* The mode of the desired acceleration/deceleration to be set
299
301
*/
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ namespace myactuator_rmd {
36
36
37
37
SetAccelerationRequest::SetAccelerationRequest (std::uint32_t const acceleration, AccelerationType const mode)
38
38
: SingleMotorRequest{} {
39
- if ((acceleration < 100 ) || (acceleration > 60000 )) {
39
+ if ((acceleration != 0 ) && ((acceleration < 100 ) || (acceleration > 60000 ) )) {
40
40
throw ValueRangeException (" Acceleration value '" + std::to_string (acceleration) + " ' out of range [100, 60000]" );
41
41
}
42
42
auto const acceleration_type {static_cast <std::uint8_t >(mode)};
You can’t perform that action at this time.
0 commit comments