Changeset 427
- Timestamp:
- 02/17/07 22:15:11 (2 years ago)
- Files:
-
- trunk/projects/cmucam2/cmucam2.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/projects/cmucam2/cmucam2.c
r426 r427 144 144 bool poll_mode, bool quiet); 145 145 static void cmucam2_get_mean (cc3_color_info_pkt_t * t_pkt, bool poll_mode, 146 bool line_mode, bool qui te);146 bool line_mode, bool quiet); 147 147 static void cmucam2_write_s_packet (cc3_color_info_pkt_t * pkt); 148 148 static void cmucam2_track_color (cc3_track_pkt_t * t_pkt, 149 149 bool poll_mode, 150 bool line_mode, bool auto_led, bool qui te);150 bool line_mode, bool auto_led, bool quiet); 151 151 static int32_t cmucam2_get_command (int32_t * cmd, int32_t * arg_list); 152 152 static void print_ACK (void); … … 694 694 695 695 void cmucam2_get_histogram (cc3_histogram_pkt_t * h_pkt, bool poll_mode, 696 bool qui te)696 bool quiet) 697 697 { 698 698 cc3_image_t img; … … 715 715 return; 716 716 } 717 if (!qui te)717 if (!quiet) 718 718 cmucam2_write_h_packet (h_pkt); 719 719 } … … 732 732 733 733 void cmucam2_get_mean (cc3_color_info_pkt_t * s_pkt, 734 bool poll_mode, bool line_mode, bool qui te)734 bool poll_mode, bool line_mode, bool quiet) 735 735 { 736 736 cc3_image_t img; … … 751 751 return; 752 752 } 753 if (!qui te)753 if (!quiet) 754 754 cmucam2_write_s_packet (s_pkt); 755 755 } … … 765 765 void cmucam2_track_color (cc3_track_pkt_t * t_pkt, 766 766 bool poll_mode, 767 bool line_mode, bool auto_led, bool qui te)767 bool line_mode, bool auto_led, bool quiet) 768 768 { 769 769 cc3_image_t img; … … 789 789 if (img.width % 8 != 0) 790 790 lm_width++; 791 if (!qui te)791 if (!quiet) 792 792 putchar (0xAA); 793 793 if (cc3_g_pixbuf_frame.height > 255) … … 795 795 else 796 796 lm_height = cc3_g_pixbuf_frame.height; 797 if (!qui te)797 if (!quiet) 798 798 putchar (img.width); 799 if (!qui te)799 if (!quiet) 800 800 putchar (lm_height); 801 801 } … … 811 811 for (int j = 0; j < lm_width; j++) { 812 812 if (lm[j] == 0xAA) { 813 if (!qui te)813 if (!quiet) 814 814 putchar (0xAB); 815 815 } 816 816 else { 817 if (!qui te)817 if (!quiet) 818 818 putchar (lm[j]); 819 819 } … … 829 829 cc3_track_color_scanline_finish (t_pkt); 830 830 if (line_mode) { 831 if (!qui te)831 if (!quiet) 832 832 putchar (0xAA); 833 if (!qui te)833 if (!quiet) 834 834 putchar (0xAA); 835 835 } … … 840 840 cc3_led_set_off (0); 841 841 } 842 if (!qui te)842 if (!quiet) 843 843 cmucam2_write_t_packet (t_pkt); 844 844 }
