fix logging

This commit is contained in:
Sem van der Hoeven
2023-06-09 18:26:04 +02:00
parent bf48ee04c3
commit da0a35f98f

View File

@@ -282,7 +282,7 @@ public:
{ {
if (future.get()->success) if (future.get()->success)
{ {
this->get_logger()->info("Attitude set to 0 for landing, landing done"); RCLCPP_INFO(this->get_logger(),"Attitude set to 0 for landing, landing done");
this->has_landed = true; this->has_landed = true;
} }
} }
@@ -299,7 +299,7 @@ public:
{ {
if (future.get()->success) if (future.get()->success)
{ {
this->get_logger()->info("Vehicle Control mode set to attitude for landing"); RCLCPP_INFO(this->get_logger()"Vehicle Control mode set to attitude for landing");
this->attitude_request->pitch = 0; this->attitude_request->pitch = 0;
this->attitude_request->roll = 0; this->attitude_request->roll = 0;
this->attitude_request->yaw = 0; this->attitude_request->yaw = 0;