Add this to the list

Post your requests and ideas on the future development of mikroBasic PRO for ARM.
Post Reply
Author
Message
s_sergiu
Posts: 77
Joined: 10 Jan 2012 15:09

Add this to the list

#1 Post by s_sergiu » 09 Sep 2012 11:57

Hi,

- Add "AND", "OR" in If - then - end if :

If a = 12 and b=3 and c<b then
.....
end if

If a < b or c >d then ....

- Print statement , no matter a is let say longint and b is float
Print "a="; a;" b=";b

It is so difficult to copy and paste along the program when testing different variables
Uart_Write text("a=")
LongintToStr(a,txt)
Uart_Write_Text(txt)
Uart_Write text(",")
Uart_Write text("b=")
FloatToString (b,txt)
Uart_Write_Text(txt)
Uart_Write(13)
Uart_Write(10)

I have to print for example : aileron,elevator,roll,throttle, gear, Aux1,Aux2 and see all this RC channels in the same time but the way it is now is time consuming to write down and will occupies half of a page.
However what is really bothering my is that I can see only 7 digits. (for example i need to see GPS_LAT = 43.9277654 )
Even by using ExtendedToString (which is not working for now) is displaying same number of digits as floatTo String.



Thank you,
Sergiu

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Add this to the list

#2 Post by filip » 14 Sep 2012 12:09

Hi,
- Add "AND", "OR" in If - then - end if :

If a = 12 and b=3 and c<b then
.....
end if

If a < b or c >d then ....
You can accomplish this by :

Code: Select all

program test

dim aa,bb,cc as char

main:
  a = 12
  b = 3
  c = 5

  if ((a = 12) and (b = 3) and (c < b)) then
    ' do something
  end if
end.
As for the second suggestion, I agree that this printing routine will be much more easier to use, we will consider it.

Regards,
Filip.

Post Reply

Return to “mikroBasic PRO for ARM Wish List”