Skip to content

Commit

Permalink
Update RoverPositionControl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
PerFrivik authored Nov 10, 2023
1 parent a722f38 commit 29bfd40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/rover_pos_control/RoverPositionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ RoverPositionControl::vehicle_control_mode_poll()
void
RoverPositionControl::manual_control_setpoint_poll()
{
if (true) {
if (_control_mode.flag_control_manual_enabled) {
if (_manual_control_setpoint_sub.copy(&_manual_control_setpoint)) {
float dt = math::constrain(hrt_elapsed_time(&_manual_setpoint_last_called) * 1e-6f, 0.0002f, 0.04f);

Expand Down Expand Up @@ -431,7 +431,7 @@ RoverPositionControl::Run()
matrix::Vector2d current_position(_global_pos.lat, _global_pos.lon);
matrix::Vector3f current_velocity(_local_pos.vx, _local_pos.vy, _local_pos.vz);

if (false) {
if (!_control_mode.flag_control_manual_enabled && _control_mode.flag_control_position_enabled) {

if (control_position(current_position, ground_speed, _pos_sp_triplet)) {

Expand Down

0 comments on commit 29bfd40

Please sign in to comment.