Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 799 → Rev 800

/C-OSD/trunk/osd_helpers.c
18,8 → 18,8
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
****************************************************************************/
 
#include "main.h"
#include <avr/pgmspace.h>
#include "main.h"
#include "osd_helpers.h"
#include "max7456_software_spi.h"
 
80,7 → 80,7
// the center is char 19 (north), we add the current heading in 8th
// which would be 22.5 degrees, but float would bloat up the code
// and *10 / 225 would take ages... so we take the uncorrect way
uint8_t front = 19 + (heading / 22);
uint8_t front = 19 + ((heading % 360) / 22);
for (uint8_t i = 0; i < 9; i++) {
write_char_xy(x++, y, pgm_read_byte(&rose[front - 4 + i]));
}