....further clean up
This commit is contained in:
parent
2f38b35b51
commit
295d5e6571
|
|
@ -0,0 +1,12 @@
|
|||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
!.vscode/*.code-snippets
|
||||
|
||||
# Local History for Visual Studio Code
|
||||
.history/
|
||||
|
||||
# Built Visual Studio Code Extensions
|
||||
*.vsix
|
||||
|
|
@ -205,7 +205,7 @@ uint16_t DShotRMT::calc_dshot_chksum(const dshot_packet_t& dshot_packet) {
|
|||
return chksum;
|
||||
}
|
||||
|
||||
uint16_t DShotRMT::prepare_rmt_data(const dshot_packet_t& dshot_packet) {
|
||||
uint16_t DShotRMT::prepare_rmt_data(const dshot_packet_t &dshot_packet) {
|
||||
uint16_t prepared_to_encode = DSHOT_NULL_PACKET;
|
||||
uint16_t chksum = calc_dshot_chksum(dshot_packet);
|
||||
|
||||
|
|
@ -217,7 +217,7 @@ uint16_t DShotRMT::prepare_rmt_data(const dshot_packet_t& dshot_packet) {
|
|||
}
|
||||
|
||||
// ...finally output using ESP32 RMT
|
||||
void DShotRMT::output_rmt_data(const dshot_packet_t& dshot_packet) {
|
||||
void DShotRMT::output_rmt_data(const dshot_packet_t &dshot_packet) {
|
||||
encode_dshot_to_rmt(prepare_rmt_data(dshot_packet));
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -91,17 +91,17 @@ class DShotRMT {
|
|||
bool begin(dshot_mode_t dshot_mode = DSHOT_OFF, bool is_bidirectional = false);
|
||||
void send_dshot_value(uint16_t throttle_value, telemetric_request_t telemetric_request = NO_TELEMETRIC);
|
||||
|
||||
dshot_config_t* get_dshot_info();
|
||||
uint8_t* get_dshot_clock_div();
|
||||
dshot_config_t *get_dshot_info();
|
||||
uint8_t *get_dshot_clock_div();
|
||||
|
||||
private:
|
||||
rmt_item32_t dshot_tx_rmt_item[DSHOT_PACKET_LENGTH];
|
||||
rmt_config_t dshot_tx_rmt_config;
|
||||
dshot_config_t dshot_config;
|
||||
|
||||
rmt_item32_t* encode_dshot_to_rmt(uint16_t parsed_packet);
|
||||
uint16_t calc_dshot_chksum(const dshot_packet_t& dshot_packet);
|
||||
uint16_t prepare_rmt_data(const dshot_packet_t& dshot_packet);
|
||||
rmt_item32_t *encode_dshot_to_rmt(uint16_t parsed_packet);
|
||||
uint16_t calc_dshot_chksum(const dshot_packet_t &dshot_packet);
|
||||
uint16_t prepare_rmt_data(const dshot_packet_t &dshot_packet);
|
||||
|
||||
void output_rmt_data(const dshot_packet_t& dshot_packet);
|
||||
void output_rmt_data(const dshot_packet_t &dshot_packet);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue