Skip to content

Commit 895e48c

Browse files
committed
use diffbot protocol version:
1 parent 1e72a0b commit 895e48c

48 files changed

Lines changed: 282 additions & 902 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

include/tinymovr/can.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <helpers.hpp>
11+
#include <tm_helpers.hpp>
1212

1313
class Can_ : Node
1414
{
@@ -20,7 +20,5 @@ class Can_ : Node
2020
void set_rate(uint32_t value);
2121
uint32_t get_id(void);
2222
void set_id(uint32_t value);
23-
bool get_heartbeat(void);
24-
void set_heartbeat(bool value);
2523

2624
};

include/tinymovr/comms.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <helpers.hpp>
11+
#include <tm_helpers.hpp>
1212
#include <can.hpp>
1313

1414
class Comms_ : Node

include/tinymovr/controller.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <helpers.hpp>
11+
#include <tm_helpers.hpp>
1212
#include <position.hpp>
1313
#include <velocity.hpp>
1414
#include <current.hpp>

include/tinymovr/current.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <helpers.hpp>
11+
#include <tm_helpers.hpp>
1212

1313
class Current_ : Node
1414
{
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@
88

99
#pragma once
1010

11-
#include <helpers.hpp>
11+
#include <tm_helpers.hpp>
1212

13-
class Commutation_sensor_ : Node
13+
class Encoder_ : Node
1414
{
1515
public:
1616

17-
Commutation_sensor_(uint8_t _can_node_id, send_callback _send_cb, recv_callback _recv_cb, delay_us_callback _delay_us_cb, uint32_t _delay_us_value):
17+
Encoder_(uint8_t _can_node_id, send_callback _send_cb, recv_callback _recv_cb, delay_us_callback _delay_us_cb, uint32_t _delay_us_value):
1818
Node(_can_node_id, _send_cb, _recv_cb, _delay_us_cb, _delay_us_value) {};
19-
uint8_t get_connection(void);
20-
void set_connection(uint8_t value);
21-
float get_bandwidth(void);
22-
void set_bandwidth(float value);
23-
int32_t get_raw_angle(void);
2419
float get_position_estimate(void);
2520
float get_velocity_estimate(void);
21+
uint8_t get_type(void);
22+
void set_type(uint8_t value);
23+
float get_bandwidth(void);
24+
void set_bandwidth(float value);
25+
bool get_calibrated(void);
26+
uint8_t get_errors(void);
2627

2728
};

include/tinymovr/external_spi.hpp

Lines changed: 0 additions & 26 deletions
This file was deleted.

include/tinymovr/hall.hpp

Lines changed: 0 additions & 22 deletions
This file was deleted.

include/tinymovr/homing.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <helpers.hpp>
11+
#include <tm_helpers.hpp>
1212
#include <stall_detect.hpp>
1313

1414
class Homing_ : Node

include/tinymovr/motor.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <helpers.hpp>
11+
#include <tm_helpers.hpp>
1212

1313
class Motor_ : Node
1414
{
@@ -24,6 +24,10 @@ class Motor_ : Node
2424
void set_pole_pairs(uint8_t value);
2525
uint8_t get_type(void);
2626
void set_type(uint8_t value);
27+
float get_offset(void);
28+
void set_offset(float value);
29+
int8_t get_direction(void);
30+
void set_direction(int8_t value);
2731
bool get_calibrated(void);
2832
float get_I_cal(void);
2933
void set_I_cal(float value);

include/tinymovr/onboard.hpp

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)