Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8199145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:06:44+00:00 2026-06-07T06:06:44+00:00

I am trying to parse data I am getting from an arduino robot I

  • 0

I am trying to parse data I am getting from an arduino robot I created. I currently have my serial program up and running and I am able to monitor the data being sent and received by my computer.

The data I am trying to get from the robot includes: speed, range, and heading. The data being sent from the arduino are floats.

I use a single character to denote what the data being received is by either a S,R, or H. For example:
R150.6

This would denote that this is range data and 150.6 would be the new range to update the program with.

I’m a little stuck trying to figure out the best way to parse this using c# as this is my first c# program.

I have tried with a similar code to:

if (RxString[0] == 'R')
            Range = double.Parse(RxString);

I read on the site to use regular expressions, however I am having a hard time figuring out how to incorporate it into my code.

This is the link I was using for guidance:

String parsing, extracting numbers and letters

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T06:06:45+00:00Added an answer on June 7, 2026 at 6:06 am

    You’re almost there. If you’re always starting with a single letter, try Range = double.Parse(RxString.Substring(1)). It will read from the second character on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get JSON data from a string that I have created
I am trying to parse data from the XML below (I shortened the data
I am trying to parse data from commoncrawl.org using hadoop streaming. I set up
I am trying to parse some data from ifconfig output with sed, but I
I'm trying to parse data from Archive.org's search functionality. The data looks like this:
Hello I am getting xml feed from expedia and trying to parse it onto
I am trying to parse data from a xml web service but I am
I have a weird XML file that I'm trying to parse. <Data> <Row> <Field
I'm trying to parse an html output file from a program called mirdeep. I
I am trying to parse json from a request, but I keep getting null.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.