Go to Post "In the next 5 years, the GDC will intermingle this 2012 game with the mechanics of 2009's game and it shall be called Space Jam." - Tetraman [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-10-2001, 22:37
Dan 550's Avatar
Dan 550 Dan 550 is offline
Behold the Awesomeness!
AKA: Dan Richards
#0550 (BattleTech)
Team Role: College Student
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Jersey, Baby!
Posts: 310
Dan 550 is on a distinguished road
Question BinHex in Pbasic

Does the Pbasic STAMP understand constants defined in BinHex? We at 550 were attempting to program an auto-drive into the works, using the yaw-rate sensors, optical sensors, and a makeshift RADAR syatem fabricated from the front end of a dead Mercedes that was donated to our school's automotive shop by a kind dealer that didn't want to deal with it's structural problems. So, as we're messing around, we realize we don't know how to do an obstacle vector for speed in relation to distance from objects. Can anyone help make a little sense of this?
  #2   Spotlight this post!  
Unread 20-10-2001, 12:24
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
I'm not particularly sure what you're talking about. BinHex is a program used for encoding binary files as text on a Mac. What I'm assuming you're asking is whether or not PBasic will allow the user of hexadecimal (base 16) constants. While I don't know exactly, my initial impression is to say no. But don't quote me on that.

Matt
  #3   Spotlight this post!  
Unread 21-10-2001, 11:01
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,639
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Pbasic knows hex

Pbasic is very comfortable with hex (a.k.a. hexidecimal) and binary numbers.

Decimal is assumed if there is no leading $ or #.

$ is the leading character to indicate a hex number $80 = 128 for example.

# is the leading character to indicated a binary number #1000000 = $80 = 128.

For me, Pbasic and hex go together like Mountain Dew and Pizza.

The base machine uses 8 bit and 16 bit registers. This makes hex very easy to use in come cases.

Just one programmer's opinion.

Joe J.
  #4   Spotlight this post!  
Unread 21-10-2001, 20:15
Dan 550's Avatar
Dan 550 Dan 550 is offline
Behold the Awesomeness!
AKA: Dan Richards
#0550 (BattleTech)
Team Role: College Student
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Jersey, Baby!
Posts: 310
Dan 550 is on a distinguished road
Thanks Joe

Joe, you've really cleared that up nicely; thanks.

By the way, no sensible roboticist would ever do something so drastic as to befoul his robot's processor with a program that ever was written magnetically on a mac.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PBASIC ARCTAN function Greg Ross Programming 14 11-05-2003 12:28
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 09-02-2003 22:06
PBASIC Loop Speed? archiver 2001 3 23-06-2002 23:46
Another PBASIC Question Ian W. Programming 4 31-01-2002 21:36


All times are GMT -5. The time now is 10:21.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi