vortexntnu / rov-control

Complete control system for Vortex' ROV
13 stars 9 forks source link

Reset setpoints only when needed #38

Open mortenfyhn opened 6 years ago

mortenfyhn commented 6 years ago

Resetting of setpoints is currently called in the control loop, at whatever frequency it runs at (10 Hz now). That means that when e.g. using depth hold, diving, then releasing the dive button, the new depth setpoint can be up to 100 ms old, which causes the ROV to move back toward the surface slightly. Should reset setpoints when receiving vortex_msgs/PropulsionCommand instead, probably.

mortenfyhn commented 6 years ago

I guess this can be considered a bug.