SmartDashBoard::PutString is calling the Smartdashboard and allows you to send strings to the Driver Station printing console. SmartDashboard::PutString( "DB/String 1", "This is another string") Strings can be sent to the Smartdashboard print console using the following code: SmartDashboard::PutString( "DB/String 0", "This is a string") Some teams may find this useful when testing their robot code. Unlike the DiverStationLCD print console, it is possible to type directly into the string fields as well as read these strings within your robot code. Note that the DriverStationLCD Class was removed entirely, and now printing is done through the Smartdashboard. With the 2015 update of the Driver Station, a maximum of 10 lines of strings (each allowing for 21 characters) can be manipulated to print to the Driver Station console.
0 Comments
Leave a Reply. |