Search:

Type: Posts; User: Lince

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thanks for the tip, I went back and changed all...

    Thanks for the tip, I went back and changed all function returns and parameters to unsigned and multiplied the integer output by 1.411 to get 0-360 degrees output on my LCD.
  2. Yes looking back a character is used to store a...

    Yes looking back a character is used to store a value from 0-255;

    I added this code in the main and things are closer and i'm seeing the actual numbers




    z = (int)testChar;
    ...
  3. using a digital compass need to convert ASCII character to int

    Hello all,

    I'm using a digital compass for a microcontroller project, that displays the direction the compass is facing on an LCD. I've gotten it working to the point where it displays 0-255 on...
  4. Replies
    7
    Views
    1,380

    I've tried every combination of pointer that I...

    I've tried every combination of pointer that I could think of and couldn't get anywhere. I have made other functions where a value is passed back to the caller and assigned to a local variable in...
  5. Replies
    7
    Views
    1,380

    I tried including gps_read.h in the main but no...

    I tried including gps_read.h in the main but no go. I'm trying to stay away from extern if i can but I figured I would give it a try just to do some troubleshooting. Maybe it's a compiler issue,...
  6. Replies
    7
    Views
    1,380

    no I didn't include the gps_read.h in the main...

    no I didn't include the gps_read.h in the main source I'll try that. I have made distance a local variable in gps_read.c and then tried it as a global in gps_read.c and deleted the header file and...
  7. Replies
    7
    Views
    1,380

    problem with passing value of a function

    Hello

    I'm having a problem with this code I'm stumped as to why the function Get_Distance() is returning the wrong value back to the caller. When I run a test in my IDE I watch the values of...
  8. need help with strstr function for microcontroller

    Hi I'm working on this GPS project for microcontroller, I'm getting an error with the strstr function saying it is a type mismatch. I not sure if the error is because it is not fully ANSI compliant....
  9. Replies
    1
    Views
    1,235

    building a query string

    This is another part of that url-decode program, I apologize if I shouldn't have made a new thread, but it is an entirely different problem. Thanks to the wonderful folks that have helped me here I'm...
  10. Replies
    22
    Views
    14,204

    Thank you Laserlight, I didn't understand but...

    Thank you Laserlight, I didn't understand but that makes sense, going through each element of the array and comparing, instead of just trying to paste the code into another function, when I get home...
  11. Replies
    22
    Views
    14,204

    figured this part out

    I got mad and I just couldn't leave it alone, I got it to work using this instead.



    void URLEncode(char* destination,int length, char* source){
    //local variables
    int destc=0;
    int i;...
  12. Replies
    22
    Views
    14,204

    I'm attempting to implement Laserlight's idea,...

    I'm attempting to implement Laserlight's idea, but I can't get it to work. I really don't understand what I'm doing wrong here, I suppose I'm getting to frustrated to look at it line by line.


    ...
  13. Replies
    22
    Views
    14,204

    I gave it shot utilizing that method of trying to...

    I gave it shot utilizing that method of trying to get the program to change a space into a +, but nothing is working.

    I've tried to put this bit of code in several placed throughout the function...
  14. Replies
    22
    Views
    14,204

    getting closer

    I'm getting closer, I've decided to scrap my own ideas, and implement the ideas of the smarter people in the forum :) here is the new code but I still have 1 issue. The function URLEncode spits out...
  15. Replies
    22
    Views
    14,204

    getting closer but new problem

    I've taken the next step and removed the user's input from the encoding process. now I have a new problem. The encoder function encodes the text just fine, except it is appehending %0A which i think...
  16. Replies
    2
    Views
    987

    Thanks a bunch, figures it was something small...

    Thanks a bunch, figures it was something small like that!
  17. Replies
    2
    Views
    987

    having a problem here

    I'm reworking my URL decoder, the first step is to seperate out the input, I made this function up to read input, but the phone number is coming out wierd, I think its printing the address. Can...
  18. Replies
    22
    Views
    14,204

    I got some feedback on my submission today. ...

    I got some feedback on my submission today.

    The program is suppose to handle an input string
    with multiple key/value pairs, like this:
    ...
  19. Replies
    22
    Views
    14,204

    I'm going to try that again Salem, I think an...

    I'm going to try that again Salem, I think an idea would be as you suggested, totally remove the input section from the encoding, then reintroduce it as a parameter into the code. Thank you.
  20. Replies
    22
    Views
    14,204

    I've gotten a lot further on the program but it's...

    I've gotten a lot further on the program but it's still not working properly, problems specifically

    1. the data in urlencoding I can't get it to pass the value to urlDecoding, so I've had to make...
  21. Replies
    22
    Views
    14,204

    I've done some revision and I'm capable of fully...

    I've done some revision and I'm capable of fully reading a line now and assigning data to my structure, and printing it out fine.

    My next problem now is I can't get it to URL encode now here is my...
  22. Replies
    22
    Views
    14,204

    frustration on URL encode-decode

    I'm working on this program to take a person's name, address, and phone number and convert it URL coding print it, then unencode it then print it again normally, with labels over each part. I've run...
  23. Replies
    7
    Views
    1,213

    question about these functions

    I'm wondering if anyone could explain how a couple statements in this code works.


    int main()
    {
    char c, c1, c2;
    printf("enter your sentence\n");
    while( (c = getchar()) != EOF ){
    if( c...
  24. Replies
    4
    Views
    1,291

    need help understanding this function

    Hi all I'm trying to figure out how this function works, pointers give me a hard time still especially a function with several pointers as parameters.

    I understand the function takes a string...
  25. Replies
    3
    Views
    2,663

    I've read quite a bit of information on CGI...

    I've read quite a bit of information on CGI encoding, and how it works. A quick run-down from what I've learned.

    A CGI is a program that automatically runs when a user goes to a website address,...
Results 1 to 25 of 34
Page 1 of 2 1 2