|
| | VescCAN (uint8_t address) |
| |
| virtual | ~VescCAN () |
| |
| void | setAddress (uint8_t address) |
| |
| void | turn (int16_t power) override |
| |
| void | stopMotor () override |
| |
| void | startMotor () override |
| |
| Encoder * | getEncoder () override |
| |
| bool | hasIntegratedEncoder () override |
| |
| EncoderType | getEncoderType () override |
| |
| bool | motorReady () override |
| |
| void | saveFlash () override |
| |
| void | restoreFlash () override |
| |
| float | getPos_f () override |
| |
| uint32_t | getCpr () override |
| |
| int32_t | getPos () override |
| |
| void | setPos (int32_t pos) override |
| |
| void | canRxPendCallback (CANPort *port, CAN_rx_msg &msg) override |
| |
| CommandStatus | command (const ParsedCommand &cmd, std::vector< CommandReply > &replies) |
| |
| void | registerCommands () |
| |
| virtual std::string | getHelpstring () |
| |
| void | Run () |
| |
| | MotorDriver () |
| |
| virtual | ~MotorDriver () |
| |
| const ClassIdentifier | getInfo () |
| |
| const ClassType | getClassType () override |
| | returns the used classchooser selection id of this instance
|
| |
| virtual void | emergencyStop (bool reset=false) |
| |
| virtual void | setEncoder (std::shared_ptr< Encoder > &encoder) |
| |
| virtual | ~ChoosableClass () |
| |
| uint16_t | getSelectionID () |
| |
| | PersistentStorage () |
| |
| virtual | ~PersistentStorage () |
| |
| void | restoreFlashDelayed () |
| |
| | Encoder () |
| |
| virtual | ~Encoder () |
| |
| const ClassIdentifier | getInfo () |
| |
| virtual int32_t | getPosAbs () |
| |
| virtual float | getPosAbs_f () |
| |
| virtual const ClassType | getClassType () override |
| | returns the used classchooser selection id of this instance
|
| |
Public Member Functions inherited from CanHandler |
| | CanHandler () |
| |
| virtual | ~CanHandler () |
| |
| virtual void | canErrorCallback (CANPort *port, uint32_t errcode) |
| |
| virtual void | canRxFullCallback (CANPort *port, uint32_t fifo) |
| |
| virtual void | canTxCpltCallback (CANPort *port, uint32_t mailbox) |
| |
| virtual void | canTxAbortCallback (CANPort *port, uint32_t mailbox) |
| |
Public Member Functions inherited from CommandHandler |
| virtual const ClassType | getClassType () |
| |
| | CommandHandler (const char *clsname, uint16_t clsid, uint8_t instance=0) |
| |
| virtual | ~CommandHandler () |
| |
| virtual bool | hasCommands () |
| |
| virtual void | setCommandsEnabled (bool enable) |
| |
| void | registerCommands () |
| |
| virtual CommandStatus | internalCommand (const ParsedCommand &cmd, std::vector< CommandReply > &replies) |
| |
| virtual const ClassIdentifier | getInfo ()=0 |
| | Command handlers always have class infos. Works well with ChoosableClass.
|
| |
| virtual std::string | getCommandsHelpstring () |
| |
| virtual std::string | getCsvHelpstring () |
| |
| virtual uint8_t | getCommandHandlerInstance () |
| |
| void | broadcastCommandReply (CommandReply reply, uint32_t cmdId, CMDtype type) |
| |
| void | sendCommandReplyAsync (CommandReply reply, uint32_t cmdId, CMDtype type, CommandInterface *interface=nullptr) |
| |
| virtual uint16_t | getCommandHandlerID () |
| |
| virtual CmdHandlerInfo * | getCommandHandlerInfo () |
| |
| virtual bool | isValidCommandId (uint32_t cmdid, uint32_t ignoredFlags=0, uint32_t requiredFlag=0) |
| |
| virtual CmdHandlerCommanddef * | getCommandFromName (const std::string &cmd, uint32_t ignoredFlags=0) |
| |
| virtual CmdHandlerCommanddef * | getCommandFromId (const uint32_t id, uint32_t ignoredFlags=0) |
| |
| template<typename ID> |
| void | registerCommand (const char *cmd, const ID cmdid, const char *help=nullptr, uint32_t flags=0) |
| |
|
| void | saveFlashOffset () |
| |
| void | getFirmwareInfo () |
| |
| bool | isFirmwareCompatible () |
| |
| void | sendPing () |
| |
| void | setTorque (float torque) |
| |
| void | decodeEncoderPosition (float newPos) |
| |
| void | askGetValue () |
| |
| void | askPositionEncoder () |
| |
| void | sendMsg (uint8_t cmd, uint8_t *buffer, uint8_t len) |
| |
| void | decode_buffer (uint8_t *buffer, uint8_t len) |
| |
| void | buffer_append_float32 (uint8_t *buffer, float number, float scale, int32_t *index) |
| |
| void | buffer_append_int32 (uint8_t *buffer, int32_t number, int32_t *index) |
| |
| void | buffer_append_uint32 (uint8_t *buffer, uint32_t number, int32_t *index) |
| |
| uint32_t | buffer_get_uint32 (const uint8_t *buffer, int32_t *index) |
| |
| int32_t | buffer_get_int32 (const uint8_t *buffer, int32_t *index) |
| |
| int16_t | buffer_get_int16 (const uint8_t *buffer, int32_t *index) |
| |
| float | buffer_get_float16 (const uint8_t *buffer, float scale, int32_t *index) |
| |
| float | buffer_get_float32 (const uint8_t *buffer, float scale, int32_t *index) |
| |
| | Thread (const std::string Name, uint16_t StackDepth, UBaseType_t Priority) |
| |
| | Thread (const char *Name, uint16_t StackDepth, UBaseType_t Priority) |
| |
| | Thread (uint16_t StackDepth, UBaseType_t Priority) |
| |
| bool | Start () |
| |
| virtual | ~Thread () |
| |
| TaskHandle_t | GetHandle () |
| |
| void | Suspend () |
| |
| void | Resume () |
| |
| void | ResumeFromISR () |
| |
| void | Notify () |
| |
| void | NotifyFromISR () |
| |
| uint32_t | WaitForNotification (TickType_t Timeout=portMAX_DELAY) |
| |
| UBaseType_t | GetPriority () |
| |
| UBaseType_t | GetPriorityFromISR () |
| |
| void | SetPriority (UBaseType_t NewPriority) |
| |
| std::string | GetName () |
| |
| char * | GetName () |
| |
| virtual void | Cleanup () |
| |
| void | Delay (const TickType_t Delay) |
| |
| void | DelayUntil (const TickType_t Period) |
| |
| void | ResetDelayUntil () |
| |
| bool | Wait (ConditionVariable &Cv, Mutex &CvLock, TickType_t Timeout=portMAX_DELAY) |
| |
|
| static bool | isCreatable () |
| |
| static std::vector< PersistentStorage * > & | getFlashHandlers () |
| |
| static void | restoreFlashStartupCb () |
| |
Static Public Member Functions inherited from CanHandler |
| static std::vector< CanHandler * > & | getCANHandlers () |
| |
Static Public Member Functions inherited from CommandHandler |
| static void | logSerial (std::string string) |
| | Send a log formatted sequence.
|
| |
| static void | logSerialDebug (std::string string) |
| | Send a log formatted sequence if debug is on.
|
| |
| static bool | logsEnabled () |
| |
| static void | setLogsEnabled (bool enabled) |
| |
| static uint32_t | getClassIdFromName (const char *name) |
| |
| static const char * | getClassNameFromId (const uint32_t id) |
| |
| static CommandHandler * | getHandlerFromHandlerId (const uint16_t cmdhandlerID) |
| |
| static CommandHandler * | getHandlerFromId (const uint16_t id, const uint8_t instance=0xFF) |
| |
| static CommandHandler * | getHandlerFromClassName (const char *name, const uint8_t instance=0xFF) |
| |
| static std::vector< CommandHandler * > | getHandlersFromClassName (const char *name) |
| |
| static std::vector< CommandHandler * > | getHandlersFromId (const uint16_t id) |
| |
| static bool | isInHandlerList (CommandHandler *handler) |
| |
| static std::string | getAllHelpstrings () |
| |
| static std::vector< CommandHandler * > & | getCommandHandlers () |
| |
| template<typename TVal> |
| static CommandStatus | handleGetSet (const ParsedCommand &cmd, std::vector< CommandReply > &replies, TVal &value) |
| |
| template<typename TVal, class cls, class cls1> |
| static CommandStatus | handleGetSetFunc (const ParsedCommand &cmd, std::vector< CommandReply > &replies, TVal &value, void(cls1::*setfunc)(TVal), cls *obj) |
| |
| template<typename TVal, class cls, class cls1, class cls2> |
| static CommandStatus | handleGetFuncSetFunc (const ParsedCommand &cmd, std::vector< CommandReply > &replies, TVal(cls1::*getfunc)(), void(cls2::*setfunc)(TVal), cls *obj) |
| |
| template<typename TVal, class cls, class cls1> |
| static CommandStatus | handleGetFuncSet (const ParsedCommand &cmd, std::vector< CommandReply > &replies, TVal &value, TVal(cls1::*getfunc)(), cls *obj) |
| |
| static ClassIdentifier | info ={.name = "None" , .id=CLSID_MOT_NONE, .visibility = ClassVisibility::visible} |
| |
| static const std::vector< class_entry< MotorDriver > > | all_drivers |
| |
| static ClassIdentifier | info |
| |
| static ClassIdentifier | info ={.name = "None" , .id=CLSID_ENCODER_NONE, .visibility = ClassVisibility::visible} |
| |
| static const std::vector< class_entry< Encoder > > | all_encoders |
| |
Static Public Attributes inherited from CommandHandler |
| static bool | logEnabled = true |
| |
Protected Member Functions inherited from CommandHandler |
| void | setInstance (uint8_t instance) |
| |
| virtual void | addCommandHandler () |
| |
| virtual void | removeCommandHandler () |
| |
Static Protected Member Functions inherited from CommandHandler |
| static std::vector< uint16_t > & | getCommandHandlerIds () |
| |
| std::shared_ptr< Encoder > | drvEncoder = std::make_shared<Encoder>() |
| |
| uint16_t | selectionId |
| | Should only be written by ClassChooser during creation.
|
| |
| bool | restoreDelayedFlag = false |
| |
| uint32_t | cpr = 0 |
| |
Protected Attributes inherited from CommandHandler |
| bool | commandsEnabled = true |
| |
| std::vector< CmdHandlerCommanddef > | registeredCommands |
| |
| CmdHandlerInfo | cmdHandlerInfo |
| |
| static bool | startupComplete = false |
| |
| static void | Yield () |
| |
| static void | StartScheduler () |
| |
| static void | EndScheduler () |
| |
Definition at line 67 of file VescCAN.h.