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

Feature/enable and disable individual modules #324

Open
wants to merge 3 commits into
base: devel
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
66 changes: 66 additions & 0 deletions api/include/oscc.h
Expand Up @@ -100,6 +100,72 @@ oscc_result_t oscc_enable( void );
oscc_result_t oscc_disable( void );


/**
* @brief Send enable command to brake module.
*
* @param [void]
*
* @return OSCC_ERROR or OSCC_OK
*
*/
oscc_result_t oscc_enable_brakes( void );


/**
* @brief Send enable command to steering module.
*
* @param [void]
*
* @return OSCC_ERROR or OSCC_OK
*
*/
oscc_result_t oscc_enable_steering( void );


/**
* @brief Send enable command to throttle module.
*
* @param [void]
*
* @return OSCC_ERROR or OSCC_OK
*
*/
oscc_result_t oscc_enable_throttle( void );


/**
* @brief Send disable command to brake module.
*
* @param [void]
*
* @return OSCC_ERROR or OSCC_OK
*
*/
oscc_result_t oscc_disable_brakes( void );


/**
* @brief Send disable command to steering module.
*
* @param [void]
*
* @return OSCC_ERROR or OSCC_OK
*
*/
oscc_result_t oscc_disable_steering( void );


/**
* @brief Send disable command to throttle module.
*
* @param [void]
*
* @return OSCC_ERROR or OSCC_OK
*
*/
oscc_result_t oscc_disable_throttle( void );


/**
* @brief Publish message with requested brake pedal position to
* brake module.
Expand Down
18 changes: 0 additions & 18 deletions api/src/internal/oscc.h
Expand Up @@ -56,24 +56,6 @@ oscc_result_t oscc_can_write(
void *msg,
unsigned int dlc );

oscc_result_t oscc_enable_brakes(
void );

oscc_result_t oscc_enable_steering(
void );

oscc_result_t oscc_enable_throttle(
void );

oscc_result_t oscc_disable_brakes(
void );

oscc_result_t oscc_disable_steering(
void );

oscc_result_t oscc_disable_throttle(
void );

void oscc_update_status( );

oscc_result_t register_can_signal();
Expand Down