From: Xavier L. <Ba...@us...> - 2010-02-24 01:29:38
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "krobot". The branch, motor-nurbs has been updated via c72950af55e8c202c2aa7fab117b946af69b1c45 (commit) from 7c4e0b0c1c3b2896d40179d041c3164647b25a71 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit c72950af55e8c202c2aa7fab117b946af69b1c45 Author: Xavier Lagorce <Xav...@cr...> Date: Wed Feb 24 01:36:55 2010 +0100 Removed last bits of the old trajectory system ----------------------------------------------------------------------- Changes: diff --git a/USB_Module/Motor_Controller/Firmware/Motor_Controller.mcw b/USB_Module/Motor_Controller/Firmware/Motor_Controller.mcw index a784761..b5f6649 100644 Binary files a/USB_Module/Motor_Controller/Firmware/Motor_Controller.mcw and b/USB_Module/Motor_Controller/Firmware/Motor_Controller.mcw differ diff --git a/USB_Module/Motor_Controller/Firmware/lm629.h b/USB_Module/Motor_Controller/Firmware/lm629.h index 7ac3ea7..a538f3e 100644 --- a/USB_Module/Motor_Controller/Firmware/lm629.h +++ b/USB_Module/Motor_Controller/Firmware/lm629.h @@ -158,9 +158,6 @@ #define GOTO_CURVE_RIGHT 1 #define GOTO_CURVE_LEFT 2 -#define TRAJ_TYPE_NONE 0x00 -#define TRAJ_TYPE_BEZIER3 0x01 - /** * Initialise l'interface entre le PIC et les LM629 puis effectue un RESET des LM629. * Cette fonction n'a besoin d'e appelqu'une seule fois (avant la boucle programme principale). diff --git a/USB_Module/Motor_Controller/Firmware/motor.c b/USB_Module/Motor_Controller/Firmware/motor.c index 4d65ca1..c5aa6f9 100644 --- a/USB_Module/Motor_Controller/Firmware/motor.c +++ b/USB_Module/Motor_Controller/Firmware/motor.c @@ -11,18 +11,6 @@ volatile long Isens1[ISENS_AVR1]; volatile long Isens2[ISENS_AVR1]; -/* Variables pour le suivi de trajectoires - * ces varibales permettent au syst de suivi de trajectoire de fonctionner - * et d'anger des donn entre le code contenu dans plusieurs fichiers - * - * elles sont dnies dans lm629.c -*/ -extern volatile BOOL gIsFollowingTrajectory; -extern volatile BOOL gIsTrajectoryNew; -extern volatile long gTrajectoryTime; -extern volatile BYTE gTrajectoryType; -extern volatile float gTrajectoryData[10]; - /** * Fonction d'interruption pour les moteurs. * Cette fonction ne doit e appelque dans une interruption. @@ -101,14 +89,6 @@ void interruptCurrentMeasure(void) { default: state = 0; } - - // Initialisation de la trajectoire - if (gIsTrajectoryNew == TRUE) { - v = 0.0; - t = 0.0; - gIsTrajectoryNew = FALSE; - gIsFollowingTrajectory = TRUE; - } } /** hooks/post-receive -- krobot |