- Posts: 65
- Thank you received: 0
Arithmetic in .ini and .hal files
- frogandspanner
- Topic Author
- Offline
- Senior Member
-
Less
More
3 years 7 months ago #266323
by frogandspanner
Arithmetic in .ini and .hal files was created by frogandspanner
Rather than doing dynamic arithmetic in hal, which is suitable for variables, there are some constants that I'd like to do arithmetic on to become a constant to be a setp on a pin.
e.g. something like
MYCONSTANT=MAX_LINEAR_VELOCITY*25.4
Is this possible?
e.g. something like
MYCONSTANT=MAX_LINEAR_VELOCITY*25.4
Is this possible?
Please Log in to join the conversation.
3 years 7 months ago #266382
by TOLP2
Replied by TOLP2 on topic Arithmetic in .ini and .hal files
As far as I know this is not possible, would be a great improvement.
For now, I just write modified components for my Hal, which do have a param or pin to set for example the scale.
For now, I just write modified components for my Hal, which do have a param or pin to set for example the scale.
Please Log in to join the conversation.
3 years 7 months ago #266384
by phillc54
Replied by phillc54 on topic Arithmetic in .ini and .hal files
Please Log in to join the conversation.
Time to create page: 0.075 seconds
