Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TB67H450Base MT6816Base 部分虚函数声明修改 #195

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ see protocol.md for the protocol specification
#ifndef __PROTOCOL_HPP
#define __PROTOCOL_HPP

#include <cstdio>


// TODO: resolve assert
#define assert(expr)

Expand Down
1 change: 1 addition & 0 deletions 2.Firmware/Core-STM32F4-fw/3rdParty/fibre/cpp/protocol.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

/* Includes ------------------------------------------------------------------*/
#include <cstdio>

#include <memory>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion 2.Firmware/Core-STM32F4-fw/Robot/instances/dummy_robot.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef REF_STM32F4_FW_DUMMY_ROBOT_H
#define REF_STM32F4_FW_DUMMY_ROBOT_H

#include <string>
#include "algorithms/kinematic/6dof_kinematic.h"
#include "actuators/ctrl_step/ctrl_step.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ class TB67H450Base : public DriverBase


/***** Port Specified Implements *****/
virtual void InitGpio();
virtual void InitGpio() = 0;

virtual void InitPwm();
virtual void InitPwm() = 0;

virtual void DacOutputVoltage(uint16_t _voltageA_3300mVIn12bits, uint16_t _voltageB_3300mVIn12bits);
virtual void DacOutputVoltage(uint16_t _voltageA_3300mVIn12bits, uint16_t _voltageB_3300mVIn12bits) = 0;

virtual void SetInputA(bool _statusAp, bool _statusAm);
virtual void SetInputA(bool _statusAp, bool _statusAm) = 0;

virtual void SetInputB(bool _statusBp, bool _statusBm);
virtual void SetInputB(bool _statusBp, bool _statusBm) = 0;
};

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class MT6816Base : public EncoderBase


/***** Port Specified Implements *****/
virtual void SpiInit();
virtual void SpiInit() = 0;

virtual uint16_t SpiTransmitAndRead16Bits(uint16_t _dataTx);
virtual uint16_t SpiTransmitAndRead16Bits(uint16_t _dataTx) = 0;

};

Expand Down