guenter1604
01.10.2010, 22:21
Hallo Forum,
in 6ms Abständen sollen unterschiedliche Strings versendet werden:
sprintf( Text, "2:1=%i\r\n", (int)tilt_angle );
uart_puts (Text);
_delay_ms(6);
sprintf( Text, "2:2=%i\r\n", (int)roll_angle);
uart_puts (Text);
_delay_ms(6);
sprintf( Text, "2:3=%i\r\n", (int)Rocker_position);
uart_puts (Text);
_delay_ms(6);
sprintf( Text, "2:4=%i\r\n", (int)Rocker_sensivity);
uart_puts (Text);
_delay_ms(6);
sprintf( Text, "2:5=%i\r\n", (int)Speed_error);
wie würdet ihr das hübsch "verpacken"? struct?
Günter
in 6ms Abständen sollen unterschiedliche Strings versendet werden:
sprintf( Text, "2:1=%i\r\n", (int)tilt_angle );
uart_puts (Text);
_delay_ms(6);
sprintf( Text, "2:2=%i\r\n", (int)roll_angle);
uart_puts (Text);
_delay_ms(6);
sprintf( Text, "2:3=%i\r\n", (int)Rocker_position);
uart_puts (Text);
_delay_ms(6);
sprintf( Text, "2:4=%i\r\n", (int)Rocker_sensivity);
uart_puts (Text);
_delay_ms(6);
sprintf( Text, "2:5=%i\r\n", (int)Speed_error);
wie würdet ihr das hübsch "verpacken"? struct?
Günter