-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Clang Robot
committed
Mar 17, 2024
1 parent
58d2939
commit 6ae9a09
Showing
4 changed files
with
261 additions
and
249 deletions.
There are no files selected for viewing
19 changes: 9 additions & 10 deletions
19
...ruster_interface_asv/include/thruster_interface_asv/thruster_interface_asv_driver_lib.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
// C++ Libraries | ||
#include <algorithm> | ||
#include <fstream> | ||
#include <iostream> | ||
#include <sstream> | ||
#include <stdint.h> | ||
#include <string> | ||
#include <vector> | ||
#include <fstream> | ||
#include <sstream> | ||
#include <iostream> | ||
#include <algorithm> | ||
|
||
#include <fcntl.h> // Used for the O_RDWR define | ||
#include <fcntl.h> // Used for the O_RDWR define | ||
#include <linux/i2c-dev.h> // Used for the I2C_SLAVE define | ||
#include <sys/ioctl.h> | ||
#include <unistd.h> // Used for the close function | ||
|
||
#include <unistd.h> // Used for the close function | ||
|
||
// Declare functions we can use | ||
namespace thruster_interface_asv_driver_lib { | ||
void init(const std::string& pathToCSVFile, int16_t* minPWM, int16_t* maxPWM); | ||
int16_t* drive_thrusters(float* forces); | ||
} | ||
void init(const std::string &pathToCSVFile, int16_t *minPWM, int16_t *maxPWM); | ||
int16_t *drive_thrusters(float *forces); | ||
} // namespace thruster_interface_asv_driver_lib |
5 changes: 2 additions & 3 deletions
5
motion/thruster_interface_asv/include/thruster_interface_asv/thruster_interface_asv_node.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// ROS2 libraries | ||
#include <ament_index_cpp/get_package_share_directory.hpp> | ||
#include <chrono> // For the ROS2 Timer clock | ||
#include <rclcpp/rclcpp.hpp> | ||
#include <std_msgs/msg/float32_multi_array.hpp> | ||
#include <std_msgs/msg/int16_multi_array.hpp> | ||
#include <ament_index_cpp/get_package_share_directory.hpp> | ||
#include <chrono> // For the ROS2 Timer clock | ||
|
||
// Custom libraries | ||
#include <thruster_interface_asv/thruster_interface_asv_driver_lib.hpp> | ||
|
Oops, something went wrong.