Rev 7 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 7 | Rev 335 | ||
|---|---|---|---|
| Line 46... | Line 46... | ||
| 46 | printf ( "- Emergency Disable Button - %s\n", state.EmReset ? "Pushed" : "Unpushed" );  | 
            46 | printf ( "- Emergency Disable Button - %s\n", state.EmReset ? "Pushed" : "Unpushed" );  | 
          
| 47 | printf ( "- Trailer 1 Press state - %s\n", state.Trailer1 ? "Pushed" : "Unpushed" );  | 
            47 | printf ( "- Trailer 1 Press state - %s\n", state.Trailer1 ? "Pushed" : "Unpushed" );  | 
          
| 48 | printf ( "- Trailer 2 Press state - %s\n", state.Trailer2 ? "Pushed" : "Unpushed" );  | 
            48 | printf ( "- Trailer 2 Press state - %s\n", state.Trailer2 ? "Pushed" : "Unpushed" );  | 
          
| 49 | 49 | ||
| 50 | if ( state.Voltage == 0.0f )  | 
            50 | if ( state.Voltage == 0.0f )  | 
          
| 51 | printf ( "- Input Voltage - Low\n"  | 
            51 | printf ( "- Input Voltage - Low\n" );  | 
          
| 52 |         else | 
            52 |         else | 
          
| 53 | printf ( "- Input Voltage - %.1fV\n", state.Voltage );  | 
            53 | printf ( "- Input Voltage - %.1fV\n", state.Voltage );  | 
          
| 54 | } | 
            54 | } | 
          
| 55 | 55 | ||
| 56 | // Function that scans start parameters | 
            56 | // Function that scans start parameters | 
          
| Line 64... | Line 64... | ||
| 64 | printf ( "Destination position:" );  | 
            64 | printf ( "Destination position:" );  | 
          
| 65 | scanf ( "%d", dest_pos );  | 
            65 | scanf ( "%d", dest_pos );  | 
          
| 66 | printf ( "\nSpeed (in tacts):" );  | 
            66 | printf ( "\nSpeed (in tacts):" );  | 
          
| 67 | scanf ( "%f", speed );  | 
            67 | scanf ( "%f", speed );  | 
          
| 68 | printf ( "\nSteps Divisor:" );  | 
            68 | printf ( "\nSteps Divisor:" );  | 
          
| 69 | scanf ( "  | 
            69 | scanf ( "%c", &( sp -> SDivisor ) );  | 
          
| 70 | getchar ();  | 
            70 | getchar ();  | 
          
| 71 | } | 
            71 | } | 
          
| 72 | 72 | ||
| 73 | // Function that prints information about device start parameters to console | 
            73 | // Function that prints information about device start parameters to console | 
          
| 74 | void print_start_params ( int dest_pos, float speed, const USMC_StartParameters sp )  | 
            74 | void print_start_params ( int dest_pos, float speed, const USMC_StartParameters sp )  |