Skip to content

Commit

Permalink
Single wrapper tested
Browse files Browse the repository at this point in the history
  • Loading branch information
BartlomiejK2 committed Jul 19, 2024
1 parent 1761ed3 commit 30d09cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "../include/pi3hat/pi3hat.h"
#include "../include/pi3hat/realtime.h"
#include "../include/moteus/moteus.h"
#include "../../../include/pi3hat/pi3hat.h"
#include "../../../include/pi3hat/realtime.h"
#include "../../../include/moteus/moteus.h"


static double GetNow()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ int main(int argc, char** argv)
actuator_command.position_ = 5 * sin(now - prev);
command(moteus_wrapper, tx_frame, actuator_command);
pi3hat_output = pi3hat.Cycle(input);
::usleep(100);
::usleep(1000);
auto mesaure_time = GetNow() - now;
frequency = (int) 1/mesaure_time;
state(moteus_wrapper, rx_frame, actuator_state);
Expand Down

0 comments on commit 30d09cc

Please sign in to comment.