Subversion Repositories NaviCtrl

Rev

Rev 264 | Rev 292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 264 Rev 267
Line 63... Line 63...
63
#include "timer1.h"
63
#include "timer1.h"
64
#include "compass.h"
64
#include "compass.h"
65
#include "spi_slave.h"
65
#include "spi_slave.h"
66
#include "menu.h"
66
#include "menu.h"
67
#include "uart1.h"
67
#include "uart1.h"
-
 
68
#include "ncmag.h"
Line 68... Line 69...
68
 
69
 
69
u8 DispPtr = 0;
70
u8 DispPtr = 0;
Line 363... Line 364...
363
                                        }
364
                                        }
364
                                }
365
                                }
365
                                else
366
                                else
366
                                {
367
                                {
367
                                        LCD_printfxy(0,0,"Magnetic Field");
368
                                        LCD_printfxy(0,0,"Magnetic Field");
368
                                        LCD_printfxy(0,1,"X: %4i",MagVector.X);
369
                                        LCD_printfxy(0,1,"X:%5i (%4i) ",MagVector.X, MagRawVector.X);
369
                                        LCD_printfxy(0,2,"Y: %4i",MagVector.Y);
370
                                        LCD_printfxy(0,2,"Y:%5i (%4i) ",MagVector.Y, MagRawVector.Y);
370
                                        LCD_printfxy(0,3,"Z: %4i",MagVector.Z);
371
                                        LCD_printfxy(0,3,"Z:%5i (%4i) ",MagVector.Z, MagRawVector.Z);
371
                                        LCD_printfxy(13,3,"(CALIB)");
372
                                        LCD_printfxy(15,3,"(CAL)");
372
                                }
373
                                }
373
                                if(Keys & KEY4) //  next step
374
                                if(Keys & KEY4) //  next step
374
                                {
375
                                {
375
                                        if(Compass_CalState <5) Compass_SetCalState(Compass_CalState+1);
376
                                        if(Compass_CalState <5) Compass_SetCalState(Compass_CalState+1);
376
                                        else Compass_SetCalState(0);
377
                                        else Compass_SetCalState(0);