Skip to content

Commit

Permalink
tested the reading and I2C sending part, cleaned up a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseKapps committed Mar 3, 2024
1 parent da7a9cd commit c905e47
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 233 deletions.
111 changes: 0 additions & 111 deletions motion/oldfiles_deletelater/old_interface.cpp

This file was deleted.

56 changes: 0 additions & 56 deletions motion/oldfiles_deletelater/old_node.cpp

This file was deleted.

31 changes: 0 additions & 31 deletions motion/oldfiles_deletelater/thruster_interface.hpp

This file was deleted.

31 changes: 0 additions & 31 deletions motion/oldfiles_deletelater/thruster_interface_node.hpp

This file was deleted.

4 changes: 2 additions & 2 deletions motion/thruster_interface/src/thruster_interface.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <thruster_interface/thruster_interface.hpp>

const int I2C_ADDRESS = 0x21;
//const int I2C_ADDRESS = 0x21;
const char *I2C_DEVICE = "/dev/i2c-1";
int8_t i2c_slave_addr = 0x21;
int8_t i2c_slave_addr = 0x20;
std::map<float, float> pwm_table;

//--------------------------FUNCTIONS--------------------------
Expand Down
6 changes: 4 additions & 2 deletions motion/thruster_interface/src/thruster_interface_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ class MinimalSubscriber : public rclcpp::Node {
//----------------------------------------------------------

int file;
if (started == false) {
/**if (started == false) {
init(file);
started = true;
}
}**/

init(file);

// SENDING
send_status(software_killswitch, file);
Expand Down

0 comments on commit c905e47

Please sign in to comment.