Ejemplo n.º 1
0
/* Get_Data()
 *==========================================================================
 * Get the current hardware values and shove them into the data structure
 */
void
Get_Data( void )
{
    Get_Keybell();
    Get_Dclick();
    Get_Kbrate();
    Get_Speed();
    Get_Block2();
}
Ejemplo n.º 2
0
void
Speed_Redraw( void )
{
   OBJECT *tree = ( OBJECT *)rs_trindex[ GENERAL ];
   int old_value = cur_value.BlitCache;
   
   Get_Speed();
   Speed_Update();

   if( old_value != cur_value.BlitCache )
   	do_redraw( tree, BLK1BUTT );
}
Ejemplo n.º 3
0
int16_t Speed_Control(float Speed_Target) 
{
    Speed_ControlPeriod++;
    if(Speed_ControlPeriod>=SPEED_CONTROL_PERIOD)
    {
        Speed_ControlPeriod=0;
        Get_Speed(&speed_L,&speed_R,&speed_A);
        speed_A = -speed_A;
        Speed_ControlOutOld = SpeedControlOutNew;
        SpeedControlOutNew=My_Speed_PI(speed_A,Speed_Target);
        SpeedControlOutValue=SpeedControlOutNew-Speed_ControlOutOld;
    }
    // return motor_output_Speed_temp;
    return SpeedControlOutNew;
}
Ejemplo n.º 4
0
int
Set_Pop_BlitCache( void )
{
   int state = NO_SPEED;
   
   Get_Speed();
   if( speed_flag == BLITCACHE )
       state = cur_value.BlitCache;
   else
   {
       if( IsBlitter() )
            state = !( cur_value.BlitCache & BLITTER );

       if( IsTTCache() )
       	    state = !( cur_value.BlitCache & TTCACHE );
   }
   return( state );   
}