Changeset 4c79bbb in robotics


Ignore:
Timestamp:
06/17/14 01:18:54 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master
Children:
3716c66
Parents:
784ff02
Message:
  • tweaking in lot
File:
1 edited

Legend:

Unmodified
Added
Removed
  • car/firmware/car/car.ino

    r784ff02 r4c79bbb  
    3636#define SERVO_PIN_TURN 9 
    3737 
    38 #define POSITION_BRAKE_STOP 150 
    39 #define POSITION_BRAKE_GO 30 
    40  
    41 #define POSITION_DIRECTION_LEFT 30 
     38#define POSITION_BRAKE_STOP 60 
     39#define POSITION_BRAKE_GO 150 
     40 
     41#define POSITION_DIRECTION_LEFT 150 
    4242#define POSITION_DIRECTION_STRAIGHT 90 
    43 #define POSITION_DIRECTION_RIGHT 150 
    44  
    45 #define POSITION_TURN_STOP 150 
    46 #define POSITION_TURN_GO 30 
    47  
    48 #define TIME_DRIVE_FORWARD 2000 // Drive forward for two seconds per detection 
    49 #define TIME_TURN 1000 // Turn wheel for one second per detection 
    50 #define TIME_TURN_DRIVE 2000 // Drive forward to two seconds while turning 
     43#define POSITION_DIRECTION_RIGHT 30 
     44 
     45#define POSITION_TURN_STOP 30 
     46#define POSITION_TURN_GO 170 
     47 
     48#define TIME_DRIVE_FORWARD 10000 // Drive forward for two seconds per detection 
     49#define TIME_TURN 3000 // Turn wheel for one second per detection 
     50#define TIME_TURN_DRIVE 4000 // Drive forward to two seconds while turning 
    5151 
    5252Servo servoBrake; 
     
    240240   
    241241  // Reset wheel 
    242   servoDirection.write(POSITION_DIRECTION_RIGHT); 
    243   servoTurn.write(POSITION_TURN_GO); 
    244   delay(TIME_TURN); 
    245   servoTurn.write(POSITION_TURN_STOP); 
     242//  servoDirection.write(POSITION_DIRECTION_RIGHT); 
     243//  servoTurn.write(POSITION_TURN_GO); 
     244//  delay(TIME_TURN); 
     245//  servoTurn.write(POSITION_TURN_STOP); 
    246246   
    247247  // Reset direction 
     
    276276   
    277277  // Reset wheel 
    278   servoDirection.write(POSITION_DIRECTION_LEFT); 
    279   servoTurn.write(POSITION_TURN_GO); 
    280   delay(TIME_TURN); 
    281   servoTurn.write(POSITION_TURN_STOP); 
     278//  servoDirection.write(POSITION_DIRECTION_LEFT); 
     279//  servoTurn.write(POSITION_TURN_GO); 
     280//  delay(TIME_TURN); 
     281//  servoTurn.write(POSITION_TURN_STOP); 
    282282   
    283283  // Reset direction 
Note: See TracChangeset for help on using the changeset viewer.