Skip to content

Commit

Permalink
Use ember_can_callbacks interface in cuber-base
Browse files Browse the repository at this point in the history
  • Loading branch information
dmezh committed Nov 12, 2022
1 parent 12a2332 commit 0784021
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions dbw/node_fw/lib/cuber-base/cuber_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "common.h"
#include "cuber_nodetypes.h"
#include "ember_can.h"
#include "ember_can_callbacks.h"
#include "ember_taskglue.h"
#include "libgitrev.h"

Expand Down Expand Up @@ -250,13 +251,13 @@ static void set_status_LEDs() {

// ###### PUBLIC FUNCTIONS ###### //

bool base_dbw_active()
bool base_dbw_active(void)
{
return system_state == SYS_STATE_DBW_ACTIVE;
}


void base_set_state_lost_can()
void ember_can_callback_notify_lost_can(void)
{
system_state = SYS_STATE_LOST_CAN;
}
Expand All @@ -273,7 +274,7 @@ void base_set_state_estop(uint8_t choice)
}


void base_set_wdt_trigger()
void base_set_wdt_trigger(void)
{
wdt_trigger = true;
}
3 changes: 2 additions & 1 deletion dbw/node_fw/lib/cuber-base/library.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.1",
"description": "CUber base management task",
"dependencies": {
"libgitrev": "https://github.com/CooperUnion/libgitrev/archive/refs/tags/v1.0.1.zip"
"libgitrev": "https://github.com/CooperUnion/libgitrev/archive/refs/tags/v1.0.1.zip",
"cuber-nodetypes": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion dbw/node_fw/lib/ember

0 comments on commit 0784021

Please sign in to comment.