Skip to content

Commit 8e5cd59

Browse files
committed
rover: fix setpoint generation
1 parent df11aa1 commit 8e5cd59

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/modules/rover_ackermann/RoverAckermann.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void RoverAckermann::Run()
9797
void RoverAckermann::generateSetpoints()
9898
{
9999
vehicle_status_s vehicle_status{};
100-
_vehicle_status_sub.update(&vehicle_status);
100+
_vehicle_status_sub.copy(&vehicle_status);
101101

102102
switch (vehicle_status.nav_state) {
103103
case vehicle_status_s::NAVIGATION_STATE_AUTO_MISSION:

src/modules/rover_differential/RoverDifferential.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void RoverDifferential::Run()
9898
void RoverDifferential::generateSetpoints()
9999
{
100100
vehicle_status_s vehicle_status{};
101-
_vehicle_status_sub.update(&vehicle_status);
101+
_vehicle_status_sub.copy(&vehicle_status);
102102

103103
switch (vehicle_status.nav_state) {
104104
case vehicle_status_s::NAVIGATION_STATE_AUTO_MISSION:

src/modules/rover_mecanum/RoverMecanum.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void RoverMecanum::Run()
9898
void RoverMecanum::generateSetpoints()
9999
{
100100
vehicle_status_s vehicle_status{};
101-
_vehicle_status_sub.update(&vehicle_status);
101+
_vehicle_status_sub.copy(&vehicle_status);
102102

103103
switch (vehicle_status.nav_state) {
104104
case vehicle_status_s::NAVIGATION_STATE_AUTO_MISSION:

0 commit comments

Comments
 (0)