Skip to content
Snippets Groups Projects
Commit 4c6f4283 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added a function to get the current phase of the stairs algorithm.

parent 787cde6e
No related branches found
No related tags found
2 merge requests!5Dynamixel manager,!2Smart charger fw
......@@ -15,6 +15,7 @@ inline uint16_t stairs_get_period(void);
void stairs_start(void);
void stairs_stop(void);
uint8_t is_climbing_stairs(void);
uint8_t stairs_get_phase(void);
// operation functions
uint8_t stairs_in_range(unsigned short int address, unsigned short int length);
......
......@@ -112,6 +112,11 @@ uint8_t is_climbing_stairs(void)
return 0x00;
}
uint8_t stairs_get_phase(void)
{
return (int8_t)ram_data[DARWIN_STAIRS_CNTRL]&STAIRS_PHASE;
}
// motion manager interface functions
void stairs_process(void)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment