Commit e87ff495 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Modified the RAM contents when the dynamixel power is switched on and off.

parent c13794a9
Pipeline #94 skipped
......@@ -94,10 +94,12 @@ void bioloid_dyn_master_servos_init(void)
inline void bioloid_dyn_master_servos_enable_power(void)
{
HAL_GPIO_WritePin(POWER_GPIO_PORT,POWER_PIN,GPIO_PIN_SET);
ram_data[DARWIN_MM_CNTRL]|=MANAGER_EN_PWR;
}
inline void bioloid_dyn_master_servos_disable_power(void)
{
HAL_GPIO_WritePin(POWER_GPIO_PORT,POWER_PIN,GPIO_PIN_RESET);
ram_data[DARWIN_MM_CNTRL]&=(~MANAGER_EN_PWR);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment